Hi,<br><br>I just installed the Visual Studio 2012 Express edition for Windows Desktop and cmake 2.8.9 is having some issues with it. Initially when I ran the cmake configure step it failed to find the devenv or msbuild program:<br>
<br><div style="margin-left:40px">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.<br></div><br>I then edited the CMakeVS11FindMake.cmake file to tell it to use the same MSBuild that the VS2012 command prompt uses (C:/Windows/Microsoft.NET/Framework/v4.0.30319):<br><br>IF(NOT CMAKE_CROSSCOMPILING)<br>
FIND_PROGRAM(CMAKE_MAKE_PROGRAM<br> NAMES MSBuild<br> HINTS<br> [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;ProductDir]<br> [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WDExpress\\11.0\\Setup\\VS;ProductDir]<br>
"$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR Version]/"<br> "c:/WINDOWS/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR Version]/"<br>
"$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\11.0;CLR Version]/"<br> <span style="color:rgb(255,0,0)">"C:/Windows/Microsoft.NET/Framework/v4.0.30319"</span><br style="color:rgb(255,0,0)">
<span style="color:rgb(0,0,0)">)</span><br>ENDIF()<br><br>and that gets me a bit further. The error message is now:<br><br><div style="margin-left:40px">Check for working C compiler using: Visual Studio 11</div>
<p style="margin:0px 0px 0px 40px;text-indent:0px">Check for working C compiler using: Visual Studio 11 -- works</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">Detecting C compiler ABI info</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000">CMake Error at C:/Program Files (x86)/CMake 2.8.9/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (TRY_COMPILE):</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> Cannot copy output executable</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> ''</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> to destination specified by COPY_FILE:</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> 'C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeDetermineCompilerABI_C.bin'</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> Unable to find the executable at any of:</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/cmTryCompileExec66551527.exe</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec66551527.exe</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/Development/cmTryCompileExec66551527.exe</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000">Call Stack (most recent call first):</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> C:/Program Files (x86)/CMake 2.8.9/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71 (CMAKE_DETERMINE_COMPILER_ABI)</span></p>
<p style="margin:0px 0px 0px 40px;text-indent:0px"><span style="color:#ff0000"> CMakeLists.txt:3 (project)</span></p><br>Is it possible to hack an existing cmake 2.8.9 install to work with VS2012 Express or am I going to have to wait for cmake 2.8.10 ?<br>
<br>--<br>Glenn<br><br>