18 指定编译器

指定编译器

​ 使用宏:

set(CMAKE_C_COMPILER "D:/ProgrammingSoftware/Mingw/mingw64/bin/gcc.exe")
set(CMAKE_CXX_COMPILER "D:/ProgrammingSoftware/Mingw/mingw64/bin/g++.exe")

注意

​ Windows上指定编译器详见17 生成compile_commands.json文件供IntelliSense分析