Re: [CMake] CMake stripping "/SUBSYSTEM" out of LINK_FLAGS

2011-11-11 Thread Jens Auer
Hi, > > it reaches the linker. I can't simply add WIN32 to > add_executable() > > because I want debug builds to use the console sub-system > and release > > builds to use the windows subsystem. I have three questions: I don't have a solution in cmake, but I worked around this using code fr

Re: [CMake] CMake stripping "/SUBSYSTEM" out of LINK_FLAGS

2011-11-09 Thread cowwoc
cowwoc wrote: > > Hi, > > I'm using CMAKE 2.8.6 with Visual Studio 2010 Express. According to > http://www.cmake.org/Wiki/VSConfigSpecificSettings I should be able run: > > set_target_properties(main PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") > > where "main" is my project, but I've discove

[CMake] CMake stripping "/SUBSYSTEM" out of LINK_FLAGS

2011-11-09 Thread cowwoc
Hi, I'm using CMAKE 2.8.6 with Visual Studio 2010 Express. According to http://www.cmake.org/Wiki/VSConfigSpecificSettings I should be able run: set_target_properties(main PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") where "main" is my project, but I've discovered that CMake strips "/SUBSYSTEM: