Due to the call to CMAKE_MINIM_REQUIRED we have to set the policy in the
subdirectory again...
Closes: #6134
IF(DEFINED DEAL_II_HAVE_TESTS_DIRECTORY)
+ #
+ # We have to repeat the policy statement here because the new
+ # CMAKE_MINIMUM_REQUIRED call resets our previous policy set in the main
+ # CMakeLists.txt file.
+ #
+ IF("${CMAKE_VERSION}" VERSION_LESS "3.11" AND POLICY CMP0037)
+ # allow to override "test" target for quick tests
+ CMAKE_POLICY(SET CMP0037 OLD)
+ ENDIF()
+
#
# If this CMakeLists.txt file is called from within the deal.II build
# system, set up quick tests as well:
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams