From 2f01ae6f8b5625f0e70c0fd360d27f3eb9df7f46 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 28 Nov 2023 12:48:43 +0100 Subject: [PATCH 1/2] Set policy_max in cmake_minimum_required to 3.27 --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f6d19407..cf3346344 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,7 @@ # Authors: Silvio Traversaro # CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT -cmake_minimum_required(VERSION 3.12) - +cmake_minimum_required(VERSION 3.12...3.27) ## We can't specify LANGUAGES NONE as have to enable C because it is currently used ## by CMake to describe packages (in Config*.cmake files) and FindACE requires CXX From eb660ad982276311028a2cd0781e2897873f38ff Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 28 Nov 2023 12:49:11 +0100 Subject: [PATCH 2/2] Update CMakeLists.txt --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf3346344..fd4494039 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,11 +8,6 @@ cmake_minimum_required(VERSION 3.12...3.27) ## by CMake to describe packages (in Config*.cmake files) and FindACE requires CXX project(robotology-superbuild LANGUAGES C CXX) -## Set CMP0094 to NEW -if(POLICY CMP0094) - cmake_policy(SET CMP0094 NEW) -endif() - # Disable in source build if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") message(FATAL_ERROR "In-source builds of robotology-superbuild are not allowed. "