I tried all the above to set up Whisper.cpp with CUDA on Win10, including adding specific locations to the compiler, copying those four files, and downgrading Cmake.
What worked in the end was simply reinstalling the CUDA Toolkit. Seems like a very old annoying issue is still here. I wonder 1. what exactly the CUDA Toolkit/VSCode installer does wrong, 2. why Cmake does not throw a better error msg? Spent one day on this, super annoying thing! Grrr!
CUDA v12.8.61, Windows 10.0.19045, MSVC 19.42.34436.0, Cmake 3.31.5