Skip to content

Commit 1da5b6d

Browse files
committed
more openmp specifics for macos
1 parent 01fe80a commit 1da5b6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,14 @@ if (MKL_FOUND AND USE_MKL_LIB)
130130
endif(MKL_FOUND AND USE_MKL_LIB)
131131

132132
#Find OpenMP package and determine version... not working well at the moment (Version not read)
133-
set(OpenMP_HINTS "")
134133
if(APPLE)
134+
set(OpenMP_HINTS "")
135135
list(APPEND OpenMP_HINTS "/opt/homebrew/opt/libomp/")
136+
find_package(OpenMP PATHS OpenMP_HINTS)
137+
else()
138+
find_package(OpenMP)
136139
endif()
137140

138-
find_package(OpenMP REQUIRED HINTS OpenMP_HINTS)
139141
if (OpenMP_C_FOUND)
140142
# Enable appropriate OpenMP flags based on compiler
141143
if(MSVC)

0 commit comments

Comments
 (0)