From b7c8c8a75ce1d18b187358e7d31fed5d7f1a6953 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 16 Mar 2014 20:21:09 +0000 Subject: [PATCH] Only set windows subsystem linker flags on wsjtx.exe link as it causes unwanted cmd shell windows from jt9.exe and kvasd.exe launches. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3873 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ec474f52..f0dc4ca71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,10 +22,9 @@ 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) +if (WIN32) + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-keep-inline-dllexport") +endif (WIN32) set (CXXSRCS @@ -161,6 +160,7 @@ add_executable (wsjtx ${CXXSRCS} ${GENUISRCS} wsjtx.rc) target_link_libraries (wsjtx jt9impl ${hamlib_LIBRARIES} ${fftw3f_LIBRARIES}) if (WIN32) target_link_libraries (wsjtx ${CMAKE_CURRENT_SOURCE_DIR}/libHRDInterface001.a) + set_target_properties (wsjtx PROPERTIES LINK_FLAGS_RELEASE "${LINKER_FLAGS_RELEASE} -mwindows") endif (WIN32) add_dependencies (wsjtx kvasd) qt5_use_modules (wsjtx Widgets Multimedia OpenGL)