Skip to content

Commit

Permalink
Adjust CMake tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Jul 2, 2024
1 parent a202e87 commit 0cc5213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function( add_cxx_test target source )
string(REGEX REPLACE "h$|hpp$" "cpp" CPP_FILE_NAME ${CPP_FILE_NAME})
set(CPP_FULL_NAME "${CMAKE_CURRENT_BINARY_DIR}/${CPP_FILE_NAME}")
CXXTEST_ADD_TEST( ${target} "${CPP_FULL_NAME}" ${source} )
target_link_libraries( ${target} ${CMAKE_THREAD_LIBS_INIT} )
target_link_libraries( ${target} PRIVATE ASYNC )
set_tests_properties( ${target} PROPERTIES TIMEOUT ${test_timeout} ) # Detect deadlocks
endfunction( add_cxx_test )

Expand All @@ -59,7 +59,7 @@ function( add_mpi_cxx_test target source ranks )
)
add_executable(${target} ${CPP_FULL_NAME})
set_target_properties(${target} PROPERTIES COMPILE_FLAGS "-Wno-effc++")
target_link_libraries( ${target} ${CMAKE_THREAD_LIBS_INIT} )
target_link_libraries( ${target} PRIVATE ASYNC )
add_test( NAME ${target} COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS}
${MPIEXEC_NUMPROC_FLAG} ${ranks} ${CMAKE_CURRENT_BINARY_DIR}/${target} )
set_tests_properties( ${target} PROPERTIES TIMEOUT ${test_timeout} ) # Detect deadlocks
Expand Down

0 comments on commit 0cc5213

Please sign in to comment.