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 75baf9d commit 01b6c67Copy full SHA for 01b6c67
CMakeLists.txt
@@ -92,8 +92,11 @@ if(USE_OPENMP)
92
execute_process(COMMAND brew --prefix libomp
93
OUTPUT_VARIABLE HOMEBREW_LIBOMP_PREFIX
94
OUTPUT_STRIP_TRAILING_WHITESPACE)
95
+ set(OpenMP_C_FLAGS "-Xclang -fopenmp")
96
set(OpenMP_CXX_FLAGS "-Xclang -fopenmp")
97
+ set(OpenMP_C_INCLUDE_DIR "-I${HOMEBREW_LIBOMP_PREFIX}/include")
98
set(OpenMP_CXX_INCLUDE_DIR "-I${HOMEBREW_LIBOMP_PREFIX}/include")
99
+ set(OpenMP_C_LIB_NAMES omp)
100
set(OpenMP_CXX_LIB_NAMES omp)
101
set(OpenMP_libomp_LIBRARY ${HOMEBREW_LIBOMP_PREFIX}/lib/libomp.dylib)
102
endif()
0 commit comments