From fa5e3d0b55baa53547601894a0d5409db7ecb2f4 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Wed, 19 Feb 2025 10:33:57 -0600 Subject: [PATCH] CMake: Adopt policy CMP0144 All-uppercase find_package() --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b707c323a..5ed3af58e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,12 @@ if(POLICY CMP0148) cmake_policy(SET CMP0148 OLD) endif() +# As of cMake 3.27, find_package() will look for both case-sensitive and all-uppercase versions +# of the package. This seems to affect FLANN as included by Pixi +if(POLICY CMP0144) + cmake_policy(SET CMP0144 NEW) +endif() + # The exec_program command was deprecated in cMake 3.0, and policy CMP0153 was added in cMake # 3.28 to control whether this gives a warning (the OLD behavior) or a fatal error (NEW) if(POLICY CMP0153)