CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE

第一次u安裝使用Cmake時報錯,如下:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!


原因:未安裝make

解決方案:

ubuntu 18.04系統中輸入命令 $sudo apt-get install make

安裝完成後輸入cmake  .命令不再報錯。

 

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