From a81071eae49df0cb1d6ec34a9ad8da8fcf3721a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 22 Jul 2023 21:36:05 +0200 Subject: [PATCH] CMake: allow both _ROOT and _ROOT variables. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69a00f8..36e6675 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,10 @@ endif() if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) endif() +# Allow also _ROOT (i.e., uppercase), on 3.27+ +if(POLICY CMP0144) + cmake_policy(SET CMP0144 NEW) +endif() # Superprojects can use just set(MAGNUM_WITH_BLAH ON) without FORCE CACHE on # 3.13+ if(POLICY CMP0077)