From 88bbb988ef48343542d09ac9eb01b6b1e1d8dfe4 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 10 Feb 2015 14:18:02 +0000 Subject: [PATCH] Fix CMake link flags for OpenMP on non-Mac platforms git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4950 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86f748212..e38d18ce8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -755,18 +755,17 @@ if (${OPENMP_FOUND} OR APPLE) set_target_properties (jt9_omp PROPERTIES COMPILE_FLAGS "-fopenmp" + Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp LINK_LIBRARIES "gomp;gcc_s.1" ) else (APPLE) set_target_properties (jt9_omp PROPERTIES COMPILE_FLAGS "${OpenMP_C_FLAGS}" + LINK_FLAGS "${OpenMP_C_FLAGS}" + Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp ) endif (APPLE) - set_target_properties (jt9_omp - PROPERTIES - Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp - ) target_link_libraries (jt9_omp wsjt_fort_omp wsjt_cxx ${FFTW3_LIBRARIES}) qt5_use_modules (jt9_omp Core) endif (${OPENMP_FOUND} OR APPLE)