Thank you, it works now and that is definitely a better work around.

-Kris

-----Original Message-----
From: Brad King [mailto:[email protected]]
Sent: Thursday, June 13, 2013 5:01 PM
To: Malfettone, Kris
Cc: [email protected]; Mike
Subject: Re: [CMake] Generator Toolset fails

On 6/13/2013 4:36 PM, Malfettone, Kris wrote:
> 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.

Behavior for changing the toolset in an existing tree is not well-defined so 
this may not produce a fully consistent build.

>   Run Build Command:C:\PROGRA~2\MICROS~3.0\Common7\IDE\devenv.com

Try setting CMAKE_MAKE_PROGRAM to the path to msbuild instead of devenv, in a 
new run on a fresh build tree, along with the desired toolset.

-Brad

________________________________

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.
--

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

Reply via email to