Don't forget to add the preprocessor definition as well, because this might be
used in some header files to check whether a WINDOWS or a CONSOLE app is going
to be compiled.
I test for this definition in my own project, and it might be even used inside
the Windows headers, so this should always
Thought this was handy enough to add a wiki entry:
http://www.cmake.org/Wiki/VSConfigSpecificSettings
Mike
On Oct 7, 2008, at 12:49 AM, Jason Eubank wrote:
Thanks Stefan, this worked well.
My exact usage using your recommendations was as follows:
if(WIN32)
set_target_properties(WindowApp
Thanks Stefan, this worked well.
My exact usage using your recommendations was as follows:
if(WIN32)
set_target_properties(WindowApplicationExample PROPERTIES
LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
set_target_properties(WindowApplicationExample PROPERTIES RELWITHDEBINFO
"/SUBSYSTEM:CONSOL
Jason Eubank schrieb:
Hello,
I am wondering if it is possible to set the target property
'WIN32_EXECUTABLE' on a per-config basis (i.e. you can set link-flags
on a per-config basis using LINK_FLAGS_). From reading the
documentation this does not seem possible and if you set this property
the
Hello,
I am wondering if it is possible to set the target property '
WIN32_EXECUTABLE' on a per-config basis (i.e. you can set link-flags on a
per-config basis using LINK_FLAGS_). From reading the documentation
this does not seem possible and if you set this property then all
configurations (in Vi