Skip to content

Commit

Permalink
cmake: link Cabana against Cajita
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans authored and streeve committed Nov 19, 2020
1 parent a3c03ea commit 271b352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ if(Cabana_ENABLE_MPI)
target_link_libraries(cabanacore MPI::MPI_CXX)
endif()

if(Cabana_ENABLE_CAJITA)
target_link_libraries(cabanacore Cajita)
endif()

target_include_directories(cabanacore
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
Expand Down
3 changes: 0 additions & 3 deletions core/unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ macro(Cabana_add_tests)
target_include_directories(${_target} PRIVATE ${_dir}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(${_target} cabanacore cabana_core_gtest)
if(_test STREQUAL ParticleGridCommunication)
target_link_libraries(${_target} Cajita)
endif()
if(CABANA_UNIT_TEST_MPI)
foreach(_np ${CABANA_UNIT_TEST_MPIEXEC_NUMPROCS})
# NOTE: When moving to CMake 3.10+ make sure to use MPIEXEC_EXECUTABLE instead
Expand Down

0 comments on commit 271b352

Please sign in to comment.