1. 程式人生 > >CMAKE_C_COMPILER CMAKE_CXX_COMPILER not set

CMAKE_C_COMPILER CMAKE_CXX_COMPILER not set

– Building for: NMake Makefiles CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage – Configuring incomplete, errors occurred!

The default generator for Windows seems to be set to NMAKE. Try to use: @tibur

cmake -G "MinGW Makefiles"