视觉工作室express 2012和cmake [英] visual studio express 2012 and cmake

查看:203
本文介绍了视觉工作室express 2012和cmake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来编译一些库准备通过cmake使用,问题是,我想使用VC ++ express 2012(第一个快速版本允许x64开发),但是当我运行cmake I保持得到这个:

I am looking for a way to compile some libraries which come ready to be used through cmake, the problem is that I would like to use VC++ express 2012 (the first express version to allow x64 development) however when I run cmake I keep getting this:

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没有这个程序。任何解决方法的想法?

I found that this path is the path to devenv.exe but this brand new vc doesn't have this program. Any ideas for a workaround?

推荐答案

因此,在文件 CMakeVS11FindMake.cmake 我不得不更改注册表项的所有引用

So, in the file CMakeVS11FindMake.cmake I had to change all references of the registry key

HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0

HKEY_CURRENT_USER\\Software\\Microsoft\\WDExpress\\11.0_Config

(只是添加它们作为一个额外的提示会工作)

(just adding them as an extra hint will work)

这篇关于视觉工作室express 2012和cmake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆