From afcd0f491236b4f2c5b6174a95ade4dbb79551ac Mon Sep 17 00:00:00 2001 From: Jan Philipp Thiele <54978337+jpthiele@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:29:16 +0100 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5