[cmake-developers] [PATCH 3/3] VS: Pass MSVC compiler flags in upper case

Brad King brad.king at kitware.com
Tue Sep 9 09:53:27 EDT 2014


On 09/09/2014 09:48 AM, Bach, Pascal wrote:
> The values added to _PLATFORM_LINK_FLAGS do never end up in the .vcxproj file.
> The go into CMAKE_${lang}_CREATE_SHARED_LIBRARY [1] and CMAKE_${lang}_LINK_EXECUTABLE [2]
> However I can't see how this variables should end up in the VS generator.
> 
> Any ideas?

Those are all for the Makefile and Ninja generators, as are
CMAKE_CREATE_WIN32_EXE and CMAKE_CREATE_CONSOLE_EXE. For VS
generators the knowledge has always been hard-coded, with a
special case for Windows CE:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmLocalVisualStudio7Generator.cxx;hb=v3.0.1#l1122

The cmVisualStudio10TargetGenerator could be taught this
similarly.

-Brad




More information about the cmake-developers mailing list