From: Jan Philipp Thiele <54978337+jpthiele@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:29:16 +0000 (+0100) Subject: Update CMakeLists.txt X-Git-Tag: relicensing~271^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16302%2Fhead;p=dealii.git Update CMakeLists.txt --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 769587f606..7e31304ee1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() also searches + # _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