From d3038831ad651d916409967b70365d5fb33060ea Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 11 Mar 2014 00:43:02 +0000 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index df0d1407f..708bdc289 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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