CMake指定编译器
2020-08-19 本文已影响0人
XBruce
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" .