<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I gave it a try and it seems you are
right though I get a warning:<br>
<br>
CMake Warning:<br>
Manually-specified variables were not used by the project:<br>
<br>
I assume in a proper run CMAKE_GENERATOR_TOOLSET is set by cmake
-T and then read from there by the visual studio generator when it
initializes.<br>
<br>
By adding this to the cache manually I guess it is available
before the generator is initialized as well.<br>
<br>
Assuming that cmake -T does more than just set
CMAKE_GENERATOR_TOOLSET or may choose to communicate the toolset
with the generator in a different way in the future this may break
sooner or later.<br>
<br>
In CMakeLists.txt you can only set it after the generator has
already been initialized (e.g. too late) (?)<br>
<br>
Nils<br>
<br>
On 12.05.2013 14:58, Szymon Gatner wrote:<br>
</div>
<blockquote
cite="mid:CALqx0+V1-BhmiPiGJ_DY9akLtsC5UmzsqLe+ZC2H5esAj4OCTQ@mail.gmail.com"
type="cite">
<div dir="ltr">To clarify: I am using CMake 2.8.11-rc4. There is
nothing new toolset-related in the gui (as far as I can tell)
but manually adding entry does work and properly generates
project with XP toolset set.</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">2013/5/12 Nils Gladitz <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:gladitz@sci-vis.de"
target="_blank">gladitz@sci-vis.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>I may be missing something but I don't see an option
to set this in cmake-gui yet either.<br>
As far as I understand it setting
CMAKE_GENERATOR_TOOLSET by manually adding it to the
cache in cmake-gui should not work.<br>
<br>
The only way to currently set it (as far as I can see)
is by using the -T option for the cmake command line
client.<span class="HOEnZb"><font color="#888888"><br>
<br>
Nils</font></span>
<div>
<div class="h5"><br>
<br>
On <a moz-do-not-send="true" href="tel:12.05.2013"
value="+4812052013" target="_blank">12.05.2013</a>
14:16, Szymon Gatner wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">Oh, sorry it was "v110_xp" for
cmake-gui of course too.
<div><br>
</div>
<div>So there is no way to set it outside the gui?<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/5/12 Nils
Gladitz <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:gladitz@sci-vis.de"
target="_blank">gladitz@sci-vis.de</a>></span><br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>I think the proper value for
Platform Toolset is "v110_xp" so
"vs11_xp" shouldn't have worked.<br>
You can see the legally available
values when you open any C++ project
in Visual Studio and follow Project
-> Properties -> Configuration
Properties -> General ->
"Platform Toolset".<br>
<br>
According to the documentation
CMAKE_GENERATOR_TOOLSET is supposed to
be read to see the value that the user
set with the new -T cmake option
rather than written to.<br>
This is also collaborated by this
issue report: <a
moz-do-not-send="true"
href="http://public.kitware.com/Bug/view.php?id=13961"
target="_blank">http://public.kitware.com/Bug/view.php?id=13961</a><br>
<br>
Nils
<div>
<div><br>
<br>
On <a moz-do-not-send="true"
href="tel:12.05.2013"
value="+4812052013"
target="_blank">12.05.2013</a>
13:34, Szymon Gatner wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>I am trying to target Win
XP from Visual Studio 11
(2012) and I just tried new
CMAKE_GENERATOR_TOOLSET
variable with vs11_xp value
and it worked nicely.</div>
<div><br>
</div>
<div>Thing is, it only seems to
work when it is added manually
in cmake-gui via "Add Entry"
but not when I am adding</div>
<div><br>
</div>
<div>set(CMAKE_GENERATOR_TOOLSET
v110_xp)<br>
</div>
<div><br>
</div>
<div>to the root CMakeLists.txt
(tried also with "v110_xp" as
was not sure). I am new to
CMake and probably missing
something obvious?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Szymon Gatner</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<span><font color="#888888">
<pre>--
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a moz-do-not-send="true" href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</font></span></blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Szymon Gatner<br>
The Lordz Games Studio<br>
<a moz-do-not-send="true"
href="http://www.thelordzgamesstudio.com" target="_blank">www.thelordzgamesstudio.com</a>
</div>
</blockquote>
<br>
</body>
</html>