From b5a09910a48120d336b35c6f091161172316be58 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 7 Aug 2024 14:31:36 +0200 Subject: [PATCH] Remove cmake_minimum_required calls in non-root directories (#979) --- bindings/CMakeLists.txt | 2 -- src/libraries/learningMachine/standalone/CMakeLists.txt | 2 -- src/modules/learningMachine/standalone/CMakeLists.txt | 2 -- src/tools/embObjProtoTools/boardTransceiver/CMakeLists.txt | 2 -- .../embObjProtoTools/embObjProto_debugParser/CMakeLists.txt | 2 -- src/tools/embObjProtoTools/nvListPrinter/CMakeLists.txt | 2 -- src/tools/emsBackDoorManager/CMakeLists.txt | 2 -- src/unittest/CMakeLists.txt | 2 -- 8 files changed, 16 deletions(-) diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt index 9070e088c2..ea477e8f54 100644 --- a/bindings/CMakeLists.txt +++ b/bindings/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Paul Fitzpatrick # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}) # Find YARP for bindings-only builds diff --git a/src/libraries/learningMachine/standalone/CMakeLists.txt b/src/libraries/learningMachine/standalone/CMakeLists.txt index dd4299be0e..687a6cdca3 100644 --- a/src/libraries/learningMachine/standalone/CMakeLists.txt +++ b/src/libraries/learningMachine/standalone/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Arjan Gijsberts # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - set(PROJECTNAME learningMachine) project(${PROJECTNAME}) diff --git a/src/modules/learningMachine/standalone/CMakeLists.txt b/src/modules/learningMachine/standalone/CMakeLists.txt index 5a4b27aa98..8422e1dc65 100644 --- a/src/modules/learningMachine/standalone/CMakeLists.txt +++ b/src/modules/learningMachine/standalone/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Arjan Gijsberts # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - set(PROJECTNAME learningMachine) find_package(YARP) diff --git a/src/tools/embObjProtoTools/boardTransceiver/CMakeLists.txt b/src/tools/embObjProtoTools/boardTransceiver/CMakeLists.txt index 255b2f8c1e..ea180dd554 100644 --- a/src/tools/embObjProtoTools/boardTransceiver/CMakeLists.txt +++ b/src/tools/embObjProtoTools/boardTransceiver/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Alberto Cardellino # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - # Name of the project must correspond to the class name that needs to be # instantiated by the factory - so embObjLib is not ok SET(PROJECTNAME boardTransceiver) diff --git a/src/tools/embObjProtoTools/embObjProto_debugParser/CMakeLists.txt b/src/tools/embObjProtoTools/embObjProto_debugParser/CMakeLists.txt index 8425dc0f3c..f22a953e80 100644 --- a/src/tools/embObjProtoTools/embObjProto_debugParser/CMakeLists.txt +++ b/src/tools/embObjProtoTools/embObjProto_debugParser/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Valentina Gaggero # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - set(PROJECTNAME embObjProto_debugParser) project(${PROJECTNAME}) diff --git a/src/tools/embObjProtoTools/nvListPrinter/CMakeLists.txt b/src/tools/embObjProtoTools/nvListPrinter/CMakeLists.txt index 605fc56351..784069a76d 100644 --- a/src/tools/embObjProtoTools/nvListPrinter/CMakeLists.txt +++ b/src/tools/embObjProtoTools/nvListPrinter/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Valentina Gaggero # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - set(PROJECTNAME nvid_printer) file(GLOB folder_header *.h) diff --git a/src/tools/emsBackDoorManager/CMakeLists.txt b/src/tools/emsBackDoorManager/CMakeLists.txt index 86c23b5f64..9b3565df44 100644 --- a/src/tools/emsBackDoorManager/CMakeLists.txt +++ b/src/tools/emsBackDoorManager/CMakeLists.txt @@ -2,8 +2,6 @@ # Authors: Valentina Gaggero # CopyPolicy: Released under the terms of the GNU GPL v2.0. -cmake_minimum_required(VERSION 3.12) - set(PROJECTNAME emsBackDoorManager) file(GLOB folder_header *.h) diff --git a/src/unittest/CMakeLists.txt b/src/unittest/CMakeLists.txt index 1a2a759443..b8f10a0329 100644 --- a/src/unittest/CMakeLists.txt +++ b/src/unittest/CMakeLists.txt @@ -4,8 +4,6 @@ # This software may be modified and distributed under the terms of the # BSD-3-Clause license. See the accompanying LICENSE file for details. -cmake_minimum_required(VERSION 3.12) - include(FetchContent) #GTEST