cmake CMAKE_C_COMPILER “is not a full path to an existing compiler tool”

cmake CMAKE_C_COMPILER “is not a full path to an existing compiler tool”
在Qt Creater下CMake之後顯示缺少CMAKE_C_COMPILER項,
可添加:
CMAKE_CXX_COMPILER /usr/bin/c++
CMAKE_C_COMPILER /usr/bin/cc

在這裏插入圖片描述
在CMakelists中添加這句話,設置爲Debug模式
SET (CMAKE_BUILD_TYPE Debug CACHE INTERNAL “” FORCE)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章