From 46bcc6049a2d84bf0f3ab3e4bc898741b7d34019 Mon Sep 17 00:00:00 2001 From: Suryavarman Date: Tue, 1 Oct 2024 10:58:26 +0200 Subject: [PATCH 1/2] The CMake policy CMP0144 generates an error with the latest CMake version (3.30.4). Deleting line 39 "cmake_policy(SET CMP0144 NEW)" from the CMakeLists.txt file allows Cycles to be compiled with the latest version of CMake. --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f1a70260..f1c41e086 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,6 @@ cmake_policy(SET CMP0043 NEW) # Use ROOT variables in find_package. cmake_policy(SET CMP0074 NEW) -cmake_policy(SET CMP0144 NEW) # Avoid having empty buildtype. set(CMAKE_BUILD_TYPE_INIT "Release") -- 2.30.2 From b88f541cf76d00ad5a00ec82361b87642129008e Mon Sep 17 00:00:00 2001 From: Suryavarman Date: Wed, 2 Oct 2024 16:31:33 +0200 Subject: [PATCH 2/2] Actualiser CMakeLists.txt That way older CMake versions still use the new behavior as we want. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1c41e086..a031fb134 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,9 @@ cmake_policy(SET CMP0043 NEW) # Use ROOT variables in find_package. cmake_policy(SET CMP0074 NEW) +if(POLICY CMP0144) + cmake_policy(SET CMP0144 NEW) +endif() # Avoid having empty buildtype. set(CMAKE_BUILD_TYPE_INIT "Release") -- 2.30.2