We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01fe80a commit 1da5b6dCopy full SHA for 1da5b6d
CMakeLists.txt
@@ -130,12 +130,14 @@ if (MKL_FOUND AND USE_MKL_LIB)
130
endif(MKL_FOUND AND USE_MKL_LIB)
131
132
#Find OpenMP package and determine version... not working well at the moment (Version not read)
133
-set(OpenMP_HINTS "")
134
if(APPLE)
+ set(OpenMP_HINTS "")
135
list(APPEND OpenMP_HINTS "/opt/homebrew/opt/libomp/")
136
+ find_package(OpenMP PATHS OpenMP_HINTS)
137
+else()
138
+ find_package(OpenMP)
139
endif()
140
-find_package(OpenMP REQUIRED HINTS OpenMP_HINTS)
141
if (OpenMP_C_FOUND)
142
# Enable appropriate OpenMP flags based on compiler
143
if(MSVC)
0 commit comments