windows环境cmake的nmake failed

windows环境cmake异常

  • 问题如下:

    > cmake ..
    

    CMake Error at CMakeLists.txt:4 (PROJECT):
    Running

     'nmake' '-?'
    
    failed with:
    
     系统找不到指定的文件。
    

    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    – Configuring incomplete, errors occurred!

  • 解决
    安装visual studio installer 安装windows software developments kit 和 Windows的C++ CMake工具:
    windows环境cmake的nmake failed_第1张图片

    windows环境cmake的nmake failed_第2张图片

你可能感兴趣的:(makefile,C/C++,windows,visual,studio,c++,cmake)