想使用vs code进行gui的开发,使用WxWidget,教程说需要用到CMake,思路就是将WxWidget的library和头文件链接到项目中,进行到用Cmake构建的时候出现了错误:
I have a problem when using Cmake to build the binaries, the error is as followed
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_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Is there any fixed to this?
视频教程网站:https://youtu.be/tHMGA0jIl3Y
请教下有什么解决方案吗?
这个错误是因为CMake无法找到MinGW的编译工具链。有几个解决方法: