Skip to content

Commit

Permalink
Merge pull request #6169 from tamiko/fix_cmake_fix_for_cmake_fix
Browse files Browse the repository at this point in the history
CMake: set policy in subdirectory
  • Loading branch information
masterleinad committed Apr 5, 2018
2 parents c09f3e0 + 983a265 commit 1fc40cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/CMakeLists.txt
Expand Up @@ -33,6 +33,16 @@ SET_IF_EMPTY(MAKEOPTS $ENV{MAKEOPTS})

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:
Expand Down

0 comments on commit 1fc40cc

Please sign in to comment.