From a45af230f80b13dfafca32647e99c43bb784e2db Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 2 Feb 2015 11:34:29 +0000 Subject: [PATCH] Only add stack size link commands on Windows git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4923 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3fbfcbbd..48d4fa090 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -738,11 +738,14 @@ qt5_use_modules (jt9 Core) if (${OPENMP_FOUND}) add_executable (jt9_omp lib/jt9.f90 lib/jt9a.f90 lib/jt9b.f90 lib/jt9c.f90 ${jt9_CXXSRCS} wsjtx.rc) + if (WIN32) + set (_extra_omp_link_flags "-Wl,--stack,8388608") + endif (WIN32) set_target_properties (jt9_omp PROPERTIES COMPILE_FLAGS ${OpenMP_C_FLAGS} Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp - LINK_FLAGS "${OpenMP_C_FLAGS} -Wl,--stack,8388608" + LINK_FLAGS "${OpenMP_C_FLAGS} ${_extra_omp_link_flags}" ) target_link_libraries (jt9_omp wsjt_omp ${FFTW3_LIBRARIES}) qt5_use_modules (jt9_omp Core)