[CMake] /subsystem:windows not working

---- ---- ----
Mon Feb 11 19:22:03 EST 2013


Thanks David. I’ll give that a try!

From: David Cole [mailto:dlrdave at aol.com]
Sent: Monday, February 11, 2013 3:44 PM
To: ---- ----; cmake at cmake.org
Subject: Re: [CMake] /subsystem:windows not working

Don't set the "/SUBSYSTEM" flag manually.

Just add the "WIN32" argument to your add_executable call...


HTH,
David



-----Original Message-----
From: ---- ---- <----<mailto:---->>
To: cmake <cmake at cmake.org<mailto:cmake at cmake.org>>
Sent: Mon, Feb 11, 2013 6:39 pm
Subject: [CMake] /subsystem:windows not working
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

                IF (WIN32)
                                SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:windows")
                                SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows")
                                SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:windows")
                                SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:windows")
                ENDIF (WIN32)

I’ve tried “windows”, “WINDOWS”, “foo”… nothing seems to change the subsystem.

Is this a known issue or am I doing something wrong?

Thanks


BA

--



Powered by www.kitware.com<http://www.kitware.com>



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



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



Follow this link to subscribe/unsubscribe:

http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130212/228f7d08/attachment-0001.htm>


More information about the CMake mailing list