cmake 中设置编译器路径

SET(CMAKE_C_COMPILER /usr/bin/gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/g++)

原文地址:https://www.cnblogs.com/axjlxy/p/15581355.html