Skip to content

Commit

Permalink
check CMake version for Gadgetron testing (#854)
Browse files Browse the repository at this point in the history
closes #823
  • Loading branch information
paskino authored Feb 2, 2024
1 parent 929fa60 commit 2ef4651
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SuperBuild/External_Gadgetron.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ endif()

# Gadgetron only adds tests if (GTEST_FOUND AND ARMADILLO_FOUND)
if (BUILD_TESTING_${proj})
if(CMAKE_VERSION VERSION_LESS "3.23")
message(FATAL_ERROR "You need at least CMake 3.23 to build Gadgetron tests.")
endif()
add_test(NAME ${proj}_TESTS
COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> --output-on-failure
WORKING_DIRECTORY ${${proj}_BINARY_DIR}/test)
Expand Down

0 comments on commit 2ef4651

Please sign in to comment.