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

Glenn Coombs glenn.coombs at gmail.com
Thu Sep 20 12:38:43 EDT 2012


Thanks for that - I will try it again with the 2.8.10 release candidate.

--
Glenn


On 18 September 2012 22:17, David Cole <david.cole at kitware.com> wrote:

> On Mon, Sep 17, 2012 at 1:02 PM, Glenn Coombs <glenn.coombs at gmail.com>wrote:
>
>> 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
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
> You will need a new build of CMake to fix this problem.
>
> Brad just merged some changes to our 'next' branch today to address this
> issue.
>
> If you can build CMake from source, you can try it out right now if you
> checkout the 'next' branch and build it.
>
> If not, you could wait till tomorrow morning, and there will hopefully be
> a nightly build available that you can download and try.
>
> Or, if it's not urgent, and you can wait till next week: we have
> tentatively scheduled our first release candidate for CMake 2.8.10 for next
> Wednesday, 9/26/2012.
>
>
> HTH,
> David
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120920/c34776cf/attachment.htm>


More information about the CMake mailing list