]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update CMakeLists.txt 16302/head
authorJan Philipp Thiele <54978337+jpthiele@users.noreply.github.com>
Tue, 28 Nov 2023 13:29:16 +0000 (14:29 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Nov 2023 13:29:16 +0000 (14:29 +0100)
CMakeLists.txt

index 769587f60686cb29a9aa99014abafe59149ee1a2..7e31304ee1efcfb991564895a0316b74fdb78e84 100644 (file)
@@ -39,6 +39,12 @@ cmake_minimum_required(VERSION 3.13.4)
 #
 cmake_policy(VERSION 3.13.4)
 
+if(POLICY CMP0074)
+  # Introduced in CMake 3.12: find_package(<PackageName>) also searches
+  # <PackageName>_ROOT CMake and environment variables when set to NEW. 
+  cmake_policy(SET CMP0074 NEW)
+endif()
+
 if(POLICY CMP0075)
   # Introduced in CMake 3.12: Use CMAKE_REQUIRED_LIBRARIES also in include
   # file checks. We set the policy to NEW explicitly in order to avoid

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.