[CMake] Visual Studio 2012 Express for WD and cmake 2.8.9

Glenn Coombs glenn.coombs at gmail.com
Mon Sep 17 13:02:44 EDT 2012


Hi,

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:

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.

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):

IF(NOT CMAKE_CROSSCOMPILING)
  FIND_PROGRAM(CMAKE_MAKE_PROGRAM
    NAMES MSBuild
    HINTS

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;ProductDir]

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WDExpress\\11.0\\Setup\\VS;ProductDir]

"$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR
Version]/"

"c:/WINDOWS/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR
Version]/"

"$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\11.0;CLR
Version]/"
    "C:/Windows/Microsoft.NET/Framework/v4.0.30319"
)
ENDIF()

and that gets me a bit further.  The error message is now:

Check for working C compiler using: Visual Studio 11

Check for working C compiler using: Visual Studio 11 -- works

Detecting C compiler ABI info

CMake Error at C:/Program Files (x86)/CMake
2.8.9/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31
(TRY_COMPILE):

Cannot copy output executable

''

to destination specified by COPY_FILE:

'C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeDetermineCompilerABI_C.bin'

Unable to find the executable at any of:

C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/cmTryCompileExec66551527.exe

C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec66551527.exe

C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/Development/cmTryCompileExec66551527.exe

Call Stack (most recent call first):

C:/Program Files (x86)/CMake
2.8.9/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71
(CMAKE_DETERMINE_COMPILER_ABI)

CMakeLists.txt:3 (project)

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 ?

--
Glenn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120917/a192accf/attachment.htm>


More information about the CMake mailing list