If you want CMake to use Visual Studio 2019 instead, which it appears you have installed, you should use the following cmake command instead: cmake -G "Visual Studio 16 2019" -A x64 .. Visual Studio 15 2017 and Visual Studio 16 2019 provide different compile suites, so you must be sure to use the correct version.How do I build X64 with CMake?
One way to get cmake to build x64 on Windows with Visual Studio is like so: Start Visual Studio Command prompt for x64 Run cmake: cmake -G "NMake Makefiles" \path_to_source\ nmake Using Cmake, how do I compile either or both architectures?What does the error CMake error at cmakelists 2 mean?
CMake Error at CMakeLists.txt:2 (project): Generator Visual Studio 15 2017 Win64 could not find any instance of Visual Studio. indicates that you probably do not have Visual Studio 2017 installed, or at least, not installed correctly.How to fix could not find any instance of CMake in Visual Studio?
CMake problem: could not find any instance of Visual Studio 1 Open Visual Studio 2019 (The CMake module have been installed). 2 Open the SDK file folder with VS2019. 3 Click "Tools" and open Visual Studio 2019 Developer Command Prompt v16.4.2. 4 Type:#N#mkdir build cd build cmake -G"Visual Studio 15 2017 Win64" .. More ...