From bd8992f6f20a9b659128a409c7bbf1e8ac0601ee Mon Sep 17 00:00:00 2001 From: Alex Lelievre Date: Tue, 28 Sep 2021 08:59:03 -0700 Subject: [PATCH] This fixes the problem with gfortran compiler receiving the -Xclang option on Mac when it shouldn't. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33f59f311..92722dcb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1093,7 +1093,7 @@ target_link_libraries (wsjt_fort ${FFTW3_LIBRARIES}) if (${OPENMP_FOUND} OR APPLE) add_library (wsjt_fort_omp STATIC ${wsjt_FSRCS}) target_link_libraries (wsjt_fort_omp ${FFTW3_LIBRARIES}) - if (OpenMP_C_FLAGS) + if (OpenMP_C_FLAGS AND NOT APPLE) set_target_properties (wsjt_fort_omp PROPERTIES COMPILE_FLAGS "${OpenMP_C_FLAGS}"