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)