From 070f869932ef0d97276a8f54d32d9dc46901386b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 6 Feb 2024 12:06:06 +0500 Subject: [PATCH] fix cmake warning with CMP0144 policy The warning was: ``` CMake Warning (dev) at CMakeLists.txt:299 (find_package): Policy CMP0144 is not set: find_package uses upper-case _ROOT variables. Run "cmake --help-policy CMP0144" for policy details. Use the cmake_policy command to set the policy and suppress this warning. CMake variable BOOST_ROOT is set to: \IfcOpenShell\_deps\boost_1_74_0 For compatibility, find_package is ignoring the variable, but code in a .cmake module might still use it. ``` --- cmake/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index eaa5274e87..cef5f3fab6 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -33,6 +33,7 @@ cmake_policy(SET CMP0048 NEW) cmake_policy(SET CMP0074 NEW) cmake_policy(SET CMP0078 OLD) cmake_policy(SET CMP0086 NEW) +cmake_policy(SET CMP0144 NEW) # find_package() uses upper-case _ROOT variables. if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release")