From: Matthias Maier Date: Sun, 1 Apr 2018 17:39:49 +0000 (-0500) Subject: CMake: Only set CMP0037 to old for cmake older than 3.11 X-Git-Tag: v9.0.0-rc1~234^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28a44619294f6fd1e40b5328e5718006c625949e;p=dealii.git CMake: Only set CMP0037 to old for cmake older than 3.11 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f5d3b1ed6..6f715d65c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ IF( "${CMAKE_VERSION}" VERSION_EQUAL "3.1" OR CMAKE_POLICY(VERSION 3.1.0) ENDIF() -IF(POLICY CMP0037) +IF("${CMAKE_VERSION}" VERSION_LESS "3.11" AND POLICY CMP0037) # allow to override "test" target for quick tests CMAKE_POLICY(SET CMP0037 OLD) ENDIF()