CMake 在win下 默認會生成vc++的nmake用的make
當沒安裝時 就會報
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:8 (project):
The CMAKE_C_COMPILER:c++
cl
ide
要生成Mingw用的Make文件 要追加一個參數
cmake -G"Unix Makefiles"要這樣才能夠,ui
參考:https://blog.csdn.net/EvilBinary_root/article/details/10725481
.net