Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio express 2012 and cmake

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!

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?

like image 869
Sambatyon Avatar asked Dec 09 '22 21:12

Sambatyon


1 Answers

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

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

to the key

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

(just adding them as an extra hint will work)

like image 176
Sambatyon Avatar answered Feb 15 '23 13:02

Sambatyon