【发布时间】:2012-09-15 05:09:46
【问题描述】:
我正在寻找一种方法来编译一些准备好通过 cmake 使用的库,问题是我想使用 VC++ express 2012(第一个允许 x64 开发的 express 版本)但是当我运行 cmake 时我继续得到这个:
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 11". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file:C:/Users/Alexander Rojas/workspace/jthread-1.3.1/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:C:/Users/Alexander Rojas/workspace/jthread-1.3.1/build/CMakeFiles/CMakeCXXCompiler.cmake
Configuring incomplete, errors occurred!
我发现这个路径是devenv.exe的路径但是这个全新的vc没有这个程序。任何解决方法的想法?
【问题讨论】:
-
是的,我看到了,但是他们没有提供解决方法
-
你不能让cmake为VS2012或VC Express 2010左右生成一个vcxproj文件,然后手动构建(使用devenv或msbuild或IDE)?
-
在付费的 Visual Studio 应用程序中,CMAKE_MAKE_PROGRAM 是 devenv.com 或 MSbuild.exe。我相信 MSBuild.exe 不适用于快速版本,因此如果这导致构建停止,您可能需要等待修复。
标签: visual-studio cmake visual-studio-2012