Skip to content

Commit

Permalink
#331: Spack develop workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Whitlock committed Mar 27, 2024
1 parent ce0c149 commit f631060
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
build/
CMakeFiles/

spack-*
install-time-test-log.txt

.dir-locals.el

*.a
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 f631060

Please sign in to comment.