使用CMake在WIndows上构建YAML_CPP时出错

时间:2012-08-12 16:21:11

标签: cmake mingw yaml-cpp

当我尝试在Windows上构建yaml-cpp时,我一直收到错误。 使用CMake gui应用程序我正确地选择了build和sourcepath,但是只要我点击“Configure”按钮就会抛出以下错误:

CMake Error: CMake was unable to find a build program corresponding to "**MinGW Makefiles**".  **CMAKE_MAKE_PROGRAM** is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:C:/Users/Robert/Programs/Lib/yaml-cpp/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:C:/Users/Robert/Programs/Lib/yaml-cpp/build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!

我知道它与选定的Generator有关,我选择 CodeBlocks - MinGW Makefiles 。但是我已经正确安装了CodeBlocks。那么有没有办法手动设置 CMAKE_MAKE_PROGRAM 变量?

0 个答案:

没有答案