VSConfigSpecificSettings: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(New page: This was taken from a thread on the CMake users mailing list found here: http://www.cmake.org/pipermail/cmake/2008-October/024468.html Basically the following is needed i...)
 
(Replace content with link to new CMake community wiki)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This was taken from a thread on the CMake users mailing list found here:
{{CMake/Template/Moved}}


[[Mail Thread|http://www.cmake.org/pipermail/cmake/2008-October/024468.html]]
This page has moved [https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/recipe/VSConfigSpecificSettings here].
 
Basically the following is needed in your cmakelists.txt file.
 
if(WIN32)
    set_target_properties(WindowApplicationExample PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
    set_target_properties(WindowApplicationExample PROPERTIES RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
    set_target_properties(WindowApplicationExample PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
    set_target_properties(WindowApplicationExample PROPERTIES MINSIZEREL "/SUBSYSTEM:WINDOWS")
endif(WIN32)
 
This will cause debug builds to use the console and release builds to NOT show a console.
 
 
 
 
 
 
 
 
Search Engine: Visual Studio 2005 2008 console show hide debug release how to configuration

Latest revision as of 15:41, 30 April 2018


The CMake community Wiki has moved to the Kitware GitLab Instance.

This page has moved here.