Linux下:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
cmake path/to/your/source
windows: mingw
cmake.exe -G "MinGW Makefiles" .
Linux下:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
cmake path/to/your/source
windows: mingw
cmake.exe -G "MinGW Makefiles" .
本文标题:CMake指定编译器
本文链接:https://www.haomeiwen.com/subject/gjkrjktx.html
网友评论