Skip to content

Commit dead833

Browse files
authored
Update cmake/openmp.cmake
1 parent 461bf7c commit dead833

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmake/openmp.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ endfunction()
2020

2121
function(ppc_link_openmp exec_func_lib)
2222
find_package(OpenMP REQUIRED)
23-
# Link the canonical imported target if available
24-
if(TARGET OpenMP::OpenMP_CXX)
25-
target_link_libraries(${exec_func_lib} PUBLIC OpenMP::OpenMP_CXX)
26-
endif()
23+
target_link_libraries(${exec_func_lib} PUBLIC ${OpenMP_libomp_LIBRARY}
24+
OpenMP::OpenMP_CXX)
2725

2826
if(APPLE)
2927
# Homebrew libomp common paths

0 commit comments

Comments
 (0)