Also, you can try building with VS’ nmake
instead of a VS solution. The CMake generator for this is called “NMake Makefiles”: cmake -g "NMake Makefiles" -DCMAKE_PREFIX_PATH=... ...
best,
PC
EDIT: make sure to run the proper VS’ vcvarsall.bat
before compiling.