From 89ff71dbab705cd64a7c84892ad5569ab1e18a9a Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Wed, 10 Jan 2024 00:23:43 +0000 Subject: CMake update to quiet warnings Update the minimum cmake version to 3.16 and set policy CMP0135 Signed-off-by: Eric Kunze Change-Id: Idd96c7a318f9458e39d38cd07cf29b9ac6ee63ad --- CMakeLists.txt | 16 +++++++++++++++- reference_model/CMakeLists.txt | 2 +- reference_model/custom_op_example/CMakeLists.txt | 4 ++-- thirdparty/CMakeLists.txt | 4 +++- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 117bc9f..c4e7bf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,18 @@ -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.16) + +# Copyright (c) 2023-2024, ARM Limited. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set(CMAKE_INSTALL_PREFIX ".") project(tosa_tools LANGUAGES CXX) diff --git a/reference_model/CMakeLists.txt b/reference_model/CMakeLists.txt index 538c50b..41e4d57 100644 --- a/reference_model/CMakeLists.txt +++ b/reference_model/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.16) # Copyright (c) 2020-2024, ARM Limited. # diff --git a/reference_model/custom_op_example/CMakeLists.txt b/reference_model/custom_op_example/CMakeLists.txt index aea8071..b16ffec 100644 --- a/reference_model/custom_op_example/CMakeLists.txt +++ b/reference_model/custom_op_example/CMakeLists.txt @@ -1,6 +1,6 @@ -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.16) -# Copyright (c) 2023, ARM Limited. +# Copyright (c) 2023-2024, ARM Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index aa6c43d..df9caee 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -1,4 +1,6 @@ -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.16) + +cmake_policy(SET CMP0135 NEW) # fetch 3rd party libraries include(FetchContent) -- cgit v1.2.1