<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div>Agreed on all points..  Unfortunately...  ;) </div>
<div><br>
</div>
<div>I remember going through this with qmake,  which initially could not create a debug and release vc project file... </div>
<div><br>
</div>
<div><br>
</div>
<div style="font-size:9px">--Scott</div>
<br>
<br>
<div>-------- Original message --------</div>
<div>From: David Cole <DLRdave@aol.com> </div>
<div>Date:03/08/2015 13:57 (GMT-08:00) </div>
<div>To: Scott Aron Bloom <scott.bloom@onshorecs.com> </div>
<div>Cc: Ryan Pavlik <ryan.pavlik@gmail.com>, John Drescher <drescherjm@gmail.com>, cmake@cmake.org
</div>
<div>Subject: Re: [CMake] Multi-platform visual studio projects </div>
<div><br>
</div>
<div>There is no technical reason... But it seems to me there is a strong bias toward single-architecture build trees in the minds of non-VS/non-XCode developers.<br>
<br>
There is rampant code like this in the world:
<div><br>
</div>
<div>if(CMAKE_SIZEOF_VOID_P EQUAL 8)</div>
<div>  # do 64-bit stuff at CMake time</div>
<div>else()</div>
<div>  # do 32-bit stuff</div>
<div>endif()</div>
<div><br>
</div>
<div>Code like this assumes the architecture is determined at configure time rather than at build time. Very similar to using CMAKE_BUILD_TYPE in CMake code geared toward a single-config build. A lot of (some would say too much) effort over the years was required
 to get multi-configuration builds working well for VS. Unfortunately, a similar approach was not followed for the architecture types, and we've ended up with a proliferation of generators, and now the concept of toolsets, but still the restriction that a generated
 solution and set of project files is only of a single architecture.</div>
<div><br>
</div>
<div>Hope this helps to explain the situation a bit.</div>
<div><br>
</div>
<div>I know it's not what you wanted to hear, but, from my perspective, that's the way things are.</div>
<div><br>
</div>
<div>If you'd like to work on improving the situation...... I'm sure your efforts would be welcomed by many. ;-)</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div>David C.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>On Sunday, March 8, 2015, Scott Aron Bloom <<a href="mailto:scott.bloom@onshorecs.com">scott.bloom@onshorecs.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div>That's what I have found as well. </div>
<div><br>
</div>
<div>Based on that.   Why can't call create a 64 and 32 bit solution? </div>
<div><br>
</div>
<div>It would seem to me,  that there is no technical reason. </div>
<div><br>
</div>
<div><br>
</div>
<div style="font-size:9px">--Scott</div>
<br>
<br>
<div>-------- Original message --------</div>
<div>From: Ryan Pavlik <<a href="" target="_blank">ryan.pavlik@gmail.com</a>> </div>
<div>Date:03/08/2015 06:35 (GMT-08:00) </div>
<div>To: Scott Aron Bloom <<a href="" target="_blank">scott.bloom@onshorecs.com</a>>, John Drescher <<a href="" target="_blank">drescherjm@gmail.com</a>>
</div>
<div>Cc: <a href="" target="_blank">cmake@cmake.org</a> </div>
<div>Subject: Re: [CMake] Multi-platform visual studio projects </div>
<div><br>
</div>
<div>
<p dir="ltr">You are correct: if you're using the visual studio generators it doesn't matter (in general) what your process environment variables are. Note that if you're using find package, some of those scripts use environment variables to help find libraries,
 but they are not the "standard" variables set by the visual studio command prompt scripts.</p>
<p dir="ltr">The command prompt would matter if, for instance, you were using the nmake makefiles generator.</p>
<p dir="ltr">Ryan </p>
<br>
<div class="gmail_quote">On Wed, Mar 4, 2015, 11:03 AM Scott Aron Bloom <<a href="" target="_blank">scott.bloom@onshorecs.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Another question on this..<br>
<br>
It appears, that cmake creates the proper solution, for 64 bits even if the shell is setup for 32 bits, and vice versa.<br>
<br>
Is this correct?  Meaning when its checking the C compiler and CXX compiler ABI info and what not, its not looking for bit width, it uses the generator "Visual Studio...Win64" vs "Visual Studio" for bit width<br>
<br>
If Im not using a command line based build, does it matter how my command line is setup for running cmake?<br>
<br>
Scott<br>
<br>
-----Original Message-----<br>
From: CMake [mailto:<a href="" target="_blank">cmake-bounces@cmake.<u></u>org</a>] On Behalf Of Scott Aron Bloom<br>
Sent: Friday, February 27, 2015 8:26 AM<br>
To: John Drescher<br>
Cc: <a href="" target="_blank">cmake@cmake.org</a><br>
Subject: Re: [CMake] Multi-platform visual studio projects<br>
<br>
Thanks!<br>
<br>
-----Original Message-----<br>
From: John Drescher [mailto:<a href="" target="_blank">drescherjm@gmail.com</a>]<br>
Sent: Friday, February 27, 2015 8:26 AM<br>
To: Scott Aron Bloom<br>
Cc: <a href="" target="_blank">cmake@cmake.org</a><br>
Subject: Re: [CMake] Multi-platform visual studio projects<br>
<br>
> However,  once the solution is created, does the "path" of the shell matter at all?<br>
<br>
No.<br>
<br>
John<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">
http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">
http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">
http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">
http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/cmake</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">
http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">
http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">
http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">
http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/cmake</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>