The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14562 ====================================================================== Reported By: Kiron Assigned To: ====================================================================== Project: CMake Issue ID: 14562 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2013-11-12 03:33 EST Last Modified: 2013-11-12 03:33 EST ====================================================================== Summary: not able to compile a simple test program with -G "Visual Studio 11 2012" -Tv90 Description: CMake 2.8.12 (and 2.8.11) is unable to generate a VS 11 2012 project with toolset v90 and Visual Studio 11 2012 generator. CMake produces the following error:
> cmake -H. -Bbuild-vs11Tv90 -G "Visual Studio 11 2012" -Tv90 -- The C compiler identification is MSVC 15.0.30729.1 -- The CXX compiler identification is MSVC 15.0.30729.1 -- Check for working C compiler using: Visual Studio 11 2012 -- Check for working C compiler using: Visual Studio 11 2012 -- broken CMake Error at C:/xxx/cmake/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/xxx/build-vs11Tv90/CMakeFiles/CMakeTmp Run Build Command:C:\PROGRA~2\MICROS~3.0\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3158555336 Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60610.1. Copyright (C) Microsoft Corp. All rights reserved. The operation could not be completed. Wrong Parameter. Use: devenv [solutionfile | projectfile | anyfile.ext] [switches] The first argument for devenv is usually a solution file or project file. ... BUT it works when using the Visual Studio 10 2010 generator: > cmake -H. -Bbuild-vs10Tv90 -G "Visual Studio 10 2010" -Tv90 -- The C compiler identification is MSVC 15.0.30729.1 -- The CXX compiler identification is MSVC 15.0.30729.1 -- Check for working C compiler using: Visual Studio 10 2010 -- Check for working C compiler using: Visual Studio 10 2010 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Visual Studio 10 2010 -- Check for working CXX compiler using: Visual Studio 10 2010 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: C:/xxx/build-vs10Tv90 Steps to Reproduce: Run following command with an empty CMakeLists.txt in the current directory: > cmake -H. -Bbuild-vs11Tv90 -G "Visual Studio 11 2012" -Tv90 This fails, but following commands works: > cmake -H. -Bbuild-vs10Tv90 -G "Visual Studio 10 2010" -Tv90 ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-11-12 03:33 Kiron New Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
