]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Only set CMP0037 to old for cmake older than 3.11 6137/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 1 Apr 2018 17:39:49 +0000 (12:39 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 1 Apr 2018 17:39:49 +0000 (12:39 -0500)
CMakeLists.txt

index 9f5d3b1ed6a4cf21ec79db7c435d315d1de49d7f..6f715d65c28f8d9a5d24e3a3c7eb39add268b5f2 100644 (file)
@@ -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()

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


Typeset in Trocchi and Trocchi Bold Sans Serif.