Skip to content

Commit

Permalink
Merge pull request #332 from DARMA-tasking/331-tests-within-spack-build
Browse files Browse the repository at this point in the history
#331: Spack develop workflow fixes
  • Loading branch information
lifflander authored Jun 5, 2024
2 parents f43638e + 59d5f44 commit 4e98dde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build/
build*/
CMakeFiles/

.dir-locals.el
Expand Down
6 changes: 5 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ file(
macro(checkpoint_link_target target has_mpi)
target_include_directories(${target} PUBLIC ${PROJECT_TEST_UNIT_DIR})
target_link_libraries(${target} PRIVATE GTest::gtest GTest::gtest_main)
target_link_libraries(${target} PRIVATE Threads::Threads)
target_link_libraries(${target} PUBLIC ${CHECKPOINT_LIBRARY})

if (${has_mpi})
Expand Down Expand Up @@ -57,7 +58,10 @@ if (checkpoint_tests_enabled)
${PROJECT_TEST_UNIT_DIR}/test_harness.h
)

if(checkpoint_mpi_enabled)
#System's threading library info (eg pthread)
find_package(Threads REQUIRED)

if(checkpoint_mpi_enabled)
set(
TEST_HEADER_FILES ${TEST_HEADER_FILES}
${PROJECT_TEST_MPI_UNIT_DIR}/mpi-init.h
Expand Down

0 comments on commit 4e98dde

Please sign in to comment.