From bab5516871ebe0eca63e9f97689468f6de0a818c Mon Sep 17 00:00:00 2001 From: Benitoite Date: Sat, 5 Feb 2022 02:10:45 -0800 Subject: [PATCH] Mac: set fftw3f_omp linker flags (#6406) Sets linker flags for macOS for fftw3f_omp when OPTION_OMP==ON --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b1976ac0..0a55ca6d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -488,6 +488,12 @@ endif() pkg_check_modules(LCMS REQUIRED lcms2>=2.6) pkg_check_modules(EXPAT REQUIRED expat>=2.1) pkg_check_modules(FFTW3F REQUIRED fftw3f) + +#Set the appropriate FFTW flags on macOS +if(APPLE AND OPTION_OMP) + set(EXTRA_LIB "-L${LOCAL_PREFIX}/lib -lfftw3f_omp -lfftw3f -lm") +endif() + pkg_check_modules(IPTCDATA REQUIRED libiptcdata) find_package(TIFF 4.0.4 REQUIRED) find_package(JPEG REQUIRED)