Skip to content

Commit

Permalink
Fix CMake script
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Jul 2, 2024
1 parent cd6f7d6 commit 00da2cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ if( USE_MPI )

# Use MPI
add_definitions( -DUSE_MPI )

target_include_directories(ASYNC SYSTEM INTERFACE ${MPI_CXX_INCLUDE_PATH})
target_link_libraries(ASYNC INTERFACE MPI::MPI_C)
endif( USE_MPI )

# Threads
Expand All @@ -55,9 +58,9 @@ find_package( Threads REQUIRED )
enable_testing()

# Make sure we find the header files
include_directories( ${CMAKE_SOURCE_DIR} )
target_include_directories(ASYNC PUBLIC ${CMAKE_SOURCE_DIR} )

# Submodules
include_directories( ${CMAKE_SOURCE_DIR}/submodules )
target_include_directories(ASYNC PUBLIC ${CMAKE_SOURCE_DIR}/submodules )

add_subdirectory( tests )

0 comments on commit 00da2cb

Please sign in to comment.