<font color='black' size='2' face='arial'>Don't set the <font size="2">"/SUBSY<font size="2">STEM" flag manually.<br>
<br>
<font size="2">Just add the "WIN32" argum<font size="2">ent to your add_executable c<font size="2">all...<br>
<br>
<br>
<font size="2">HTH,<br>
<font size="2">David<br>
<br>
</font></font></font></font></font></font></font><font color="black" face="arial" size="2">
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>
From: Bryn Aspestrand <baspestrand@sugarsync.com><br>
To: cmake <cmake@cmake.org><br>
Sent: Mon, Feb 11, 2013 6:39 pm<br>
Subject: [CMake] /subsystem:windows not working<br>
<br>
<div id="AOLMsgPart_2_8c760a7d-b016-456d-bf73-f065d8a62ba0">
<div class="WordSection1">
<div class="MsoNormal">Hey there. I was wondering if somebody could help me. I’m writing a Qt GUI application. When I launch it, the console comes up with the application. I would like it to be a windowed application only. I tried the following but the subsystem
is still being set to “console” when I load my sln in visual studio 2010</div>
<div class="MsoNormal"> </div>
<div class="MsoNormal"> IF (WIN32)</div>
<div class="MsoNormal"> SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:windows")</div>
<div class="MsoNormal"> SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows")</div>
<div class="MsoNormal"> SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:windows")</div>
<div class="MsoNormal"> SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:windows")</div>
<div class="MsoNormal"> ENDIF (WIN32)</div>
<div class="MsoNormal"> </div>
<div class="MsoNormal">I’ve tried “windows”, “WINDOWS”, “foo”… nothing seems to change the subsystem.</div>
<div class="MsoNormal"> </div>
<div class="MsoNormal">Is this a known issue or am I doing something wrong?</div>
<div class="MsoNormal"> </div>
<div class="MsoNormal">Thanks</div>
<div class="MsoNormal"> </div>
<div class="MsoNormal"> </div>
<div class="MsoNormal">BA</div>
</div>
</div>
<!-- end of AOLMsgPart_2_8c760a7d-b016-456d-bf73-f065d8a62ba0 -->
<div id="AOLMsgPart_3_8c760a7d-b016-456d-bf73-f065d8a62ba0" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">
<pre style="font-size: 9pt;"><tt>--
Powered by <a __removedlink__84593840__href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a __removedlink__84593840__href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a __removedlink__84593840__href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a __removedlink__84593840__href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a>
</tt></pre>
</div>
<!-- end of AOLMsgPart_3_8c760a7d-b016-456d-bf73-f065d8a62ba0 -->
</div>
</font></font>