Skip to content

Commit 9e63430

Browse files
authored
Update cmake/openmp.cmake
1 parent dead833 commit 9e63430

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

cmake/openmp.cmake

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,4 @@ function(ppc_link_openmp exec_func_lib)
2222
find_package(OpenMP REQUIRED)
2323
target_link_libraries(${exec_func_lib} PUBLIC ${OpenMP_libomp_LIBRARY}
2424
OpenMP::OpenMP_CXX)
25-
26-
if(APPLE)
27-
# Homebrew libomp common paths
28-
find_path(LIBOMP_INCLUDE_DIR omp.h HINTS /opt/homebrew/opt/libomp/include
29-
/usr/local/opt/libomp/include)
30-
find_library(LIBOMP_LIBRARY omp HINTS /opt/homebrew/opt/libomp/lib
31-
/usr/local/opt/libomp/lib)
32-
if(LIBOMP_INCLUDE_DIR)
33-
target_include_directories(${exec_func_lib} PUBLIC ${LIBOMP_INCLUDE_DIR})
34-
endif()
35-
if(LIBOMP_LIBRARY)
36-
target_link_libraries(${exec_func_lib} PUBLIC ${LIBOMP_LIBRARY})
37-
# Ensure Clang generates OpenMP code
38-
target_compile_options(${exec_func_lib} PUBLIC -Xclang -fopenmp)
39-
endif()
40-
endif()
4125
endfunction()

0 commit comments

Comments
 (0)