On 01/27/2015 12:03 PM, Robert Goulet wrote:
> CMake uses a global variable that essentially means that the generator
> targets a Windows Store app. This makes it difficult to hack it to
> control this per project rather than globally.

This is a fundamental limitation of the design of CMake, not just of
the VS generator.  We only support one target arch/platform at a time.
The entire configuration process runs with one platform in mind, and
one toolchain per language.  This is the same reason one cannot build
host binaries while cross compiling.  Even if one were to hack the
VS generator to set the type of one .vcxproj file, it still would not
have proper information to generate the other properties in the file.

You could try running CMake with execute_process to generate a second
nested build tree, and then include_external_msproject to make one of
its .vcxproj files available in the outer .sln.  I've not tried this
though.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to