[CMake] Generator Toolset fails

Malfettone, Kris Kris.Malfettone at sig.com
Thu Jun 13 16:36:12 EDT 2013


Just wanted to add some extra information.  I found a way to work around the problem by first generating with:
cmake –G "Visual Studio 11" <path_to_src>

Then reconfiguring directly after with:
cmake –G "Visual Studio 11" -DCMAKE_GENERATOR_TOOLSET=v100 <path_to_src>


I think the key to the workaround working is that while the –T command line argument checks for changes in CMAKE_GENERATOR_TOOLSET between configuring, using the cache variable does not.  This also means the it doesn’t execute the try compile step again in the second configure step since it doesn’t think it needs to.


Any thoughts or ideas?  The double configure step is obviously annoying and brittle.


-Kris

From: Malfettone, Kris
Sent: Thursday, June 13, 2013 3:49 PM
To: 'Mike'; cmake at cmake.org
Subject: RE: [CMake] Generator Toolset fails

I have this same problem but didn’t see a response to this problem.  Is there a fix for it?  Or information related to it?

-Kris

From: cmake-bounces at cmake.org<mailto:cmake-bounces at cmake.org> [mailto:cmake-bounces at cmake.org] On Behalf Of Mike
Sent: Wednesday, May 29, 2013 10:06 AM
To: cmake at cmake.org<mailto:cmake at cmake.org>
Subject: [CMake] Generator Toolset fails

Hello, I'm trying to generate a Visual Studio 11 solution using v100 toolset and it is failing to compile a test program:

I run cmake -G "Visual Studio 11 Win64" -T "v100" <path to source>

-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 11 Win64
-- Check for working C compiler using: Visual Studio 11 Win64 -- broken
CMake Error at D:/vc11build/cmake-2.8.11/install/data/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "c:/Program Files (x86)/Microsoft Visual Studio
  10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: D:/vc11build/cmake-2.8.11/vc11w10-test/CMakeFiles/CMakeTmp



  Run Build Command:C:\PROGRA~2\MICROS~3.0\Common7\IDE\devenv.com<http://devenv.com>
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2195211524



  Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60315.1.

  Copyright (C) Microsoft Corp.  All rights reserved.



  The operation could not be completed.  The parameter is incorrect.

It then lists the devenv.com<http://devenv.com> usage parameters:

devenv [solutionfile | projectfile | anyfile.ext] [switches]

And so on. Finally:

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:11 (project)


-- Configuring incomplete, errors occurred!

And so on.

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130613/83376ece/attachment.htm>


More information about the CMake mailing list