Instead of trying it the hard way (specifically for "/subsystem") why don't you just add "WIN32" to your ADD_EXECUTABLE call?<br><br>CMake will automatically create a console app for ADD_EXECUTABLE with no flags, and a windows app for ADD_EXECUTABLE with the WIN32 flag...
<br><br>Or were you asking because there is a different use for /subsystem, rather than simply adding WIN32 to your ADD_EXECUTABLE call...?<br><br><br>HTH,<br>David<br><br><div><span class="gmail_quote">On 11/28/07, <b class="gmail_sendername">
Jesse Corrington</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I want to set the flag /subsystem to "windows" for a vc 2005 build, but I don't want to clear out all the flags and set it. The best way I can think of to do this is to iterate over the default flags until I get to /subsystem and remove it and its value, and then add the flag with the value I want. I just want to make sure this is the best way to handle this. Any thoughts?
</span><br>_______________________________________________<br>CMake mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">