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

在WIndows上使用CMake构建YAML_CPP时出错,cmake,mingw,yaml-cpp,Cmake,Mingw,Yaml Cpp,当我试图在Windows上构建yaml cpp时,我不断遇到一个错误。 使用CMake gui应用程序,我正确选择了build-and-sourcepath,但只要点击“配置”按钮,就会抛出以下错误: CMake Error: CMake was unable to find a build program corresponding to "**MinGW Makefiles**". **CMAKE_MAKE_PROGRAM** is not set. You probably need

当我试图在Windows上构建yaml cpp时,我不断遇到一个错误。 使用CMake gui应用程序,我正确选择了build-and-sourcepath,但只要点击“配置”按钮,就会抛出以下错误:

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!

我知道这与选择的生成器有关,我选择了CodeBlocks-MinGW Makefiles。但是,我已经正确安装了代码块。那么,是否有一种方法可以手动设置CMAKE_MAKE_程序变量?

我认为它包含在代码块安装中,不是吗?可能,但我怀疑安装程序是否设置了必要的环境变量。正因为如此,CMake未能找到MinGW工具链。