Closed KrisThielemans closed 5 months ago
best to use message(FATAL_ERROR ...)
as opposed to a warning.
The message should be added here https://github.com/SyneRBI/SIRF-SuperBuild/blob/929fa6052d14d2c5f99d8917f5cd0b27c13bece8/SuperBuild/External_Gadgetron.cmake#L139
With CMake 3.17 we get
https://cmake.org/cmake/help/latest/module/FindGTest.html states that
GTest::gmock
is introduced in CMake 3.23.We should therefore check CMake version and set
BUILD_TESTING_Gadgetron=OFF
and add a warning if CMake is too old to enhance our user experience.