File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ if(APPLE AND CMAKE_HOST_APPLE)
84
84
endif ()
85
85
86
86
# If OpenMP wasn't found, try if we can find it in the default Homebrew location (for newer homebrew setups)
87
- if ((NOT OPENMP_FOUND) AND (NOT OPENMP_CXX_FOUND) AND EXISTS "/opt/homebrew/opt/libomp/lib" )
88
- set (OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp -I/usr/local /opt/libomp/include" )
87
+ if ((NOT OPENMP_FOUND) AND (NOT OPENMP_CXX_FOUND) AND EXISTS "/opt/homebrew/opt/libomp/lib/libomp.dylib " )
88
+ set (OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp -I/opt/homebrew /opt/libomp/include" )
89
89
set (OpenMP_CXX_LIB_NAMES omp)
90
- set (OpenMP_omp_LIBRARY /opt/homebrew/opt/libomp/lib)
90
+ set (OpenMP_omp_LIBRARY /opt/homebrew/opt/libomp/lib/libomp.dylib )
91
91
92
92
find_package (OpenMP)
93
93
@@ -98,7 +98,6 @@ if(APPLE AND CMAKE_HOST_APPLE)
98
98
endif ()
99
99
endif ()
100
100
101
-
102
101
set (Additional_OpenMP_Libraries_Workaround "" )
103
102
104
103
# Workaround because older cmake on apple doesn't support FindOpenMP
You can’t perform that action at this time.
0 commit comments