Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAGraph: Link to OpenMP::OpenMP_C target #452

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions LAGraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,8 @@ find_package (GraphBLAS 7.0.1 REQUIRED MODULE)
if ( COVERAGE )
message ( STATUS "OpenMP disabled for test coverage" )
else ( )
include ( FindOpenMP )
include ( FindThreads )
if ( OPENMP_FOUND )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS} " )
endif ( )
find_package ( OpenMP )
find_package ( Threads )
endif ( )

#-------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions LAGraph/experimental/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ target_link_directories ( lagraphx_static BEFORE PUBLIC ${CMAKE_SOURCE_DIR}/buil
#-------------------------------------------------------------------------------

if ( OPENMP_FOUND )
target_link_libraries ( lagraphx PUBLIC lagraph ${OpenMP_C_LIBRARIES} )
target_link_libraries ( lagraphx_static PUBLIC lagraph_static ${OpenMP_C_LIBRARIES} )
target_link_libraries ( lagraphx PUBLIC lagraph OpenMP::OpenMP_C )
target_link_libraries ( lagraphx_static PUBLIC lagraph_static OpenMP::OpenMP_C )
endif ( )

#-------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions LAGraph/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ target_link_directories( lagraph_static BEFORE PUBLIC ${CMAKE_SOURCE_DIR}/build
#-------------------------------------------------------------------------------

if ( OPENMP_FOUND )
target_link_libraries ( lagraph PUBLIC ${OpenMP_C_LIBRARIES} )
target_link_libraries ( lagraph_static PUBLIC ${OpenMP_C_LIBRARIES} )
target_link_libraries ( lagraph PUBLIC OpenMP::OpenMP_C )
target_link_libraries ( lagraph_static PUBLIC OpenMP::OpenMP_C )
endif ( )

#-------------------------------------------------------------------------------
Expand Down