Link Windows executables in Release builds such that no console

terminal is invoked when run.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3860 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2014-03-11 00:43:02 +00:00
parent c2eff2f520
commit d3038831ad

View File

@ -22,6 +22,10 @@ endif (NOT CMAKE_BUILD_TYPE)
#
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
if (WIN32)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-keep-inline-dllexport")
set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -Wl,-subsystem,windows")
endif (WIN32)
set (CXXSRCS