From 23aead0b8dafc58a53ac9338c95dd09e882143f8 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 30 Sep 2016 14:47:25 +0000 Subject: [PATCH] Fix broken non-Windows builds. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7124 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9729d29b9..123c49595 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1122,9 +1122,14 @@ else () target_link_libraries (wsjtx wsjt_fort_omp wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES}) set_target_properties (wsjtx PROPERTIES COMPILE_FLAGS "${OpenMP_C_FLAGS}" - LINK_FLAGS "${OpenMP_C_FLAGS} -Wl,--stack,8388608" + LINK_FLAGS "${OpenMP_C_FLAGS}" Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp ) + if (WIN32) + set_target_properties (wsjtx PROPERTIES + LINK_FLAGS -Wl,--stack,8388608 + ) + endif () endif () qt5_use_modules (wsjtx SerialPort) # not sure why the interface link library syntax above doesn't work