build: unify minimum required cmake version

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-05-21 11:25:37 +00:00
committed by Compute-Runtime-Automation
parent 3830423b3a
commit 08b38581de
5 changed files with 7 additions and 14 deletions

View File

@@ -4,10 +4,9 @@
# SPDX-License-Identifier: MIT
#
if(WIN32)
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
if(POLICY CMP0065)
cmake_policy(SET CMP0065 OLD)
endif()
include(ExternalProject)

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2020-2021 Intel Corporation
# Copyright (C) 2020-2024 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
@@ -12,9 +12,6 @@ if(NOT DEFINED _os_release_info)
# This file has no dependencies on other files (e.g., functions or definitions)
# of the local cmake environment.
# Set cmake policies for at least this level:
cmake_minimum_required(VERSION 3.2.0)
# Function get_os_release_info - Determine and return OS name and version
#
# Args:

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2018-2020 Intel Corporation
# Copyright (C) 2018-2024 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
@@ -12,9 +12,6 @@ if(NOT DEFINED _os_release_info)
# This file has no dependencies on other files (e.g., functions or definitions)
# of the local cmake environment.
# Set cmake policies for at least this level:
cmake_minimum_required(VERSION 2.8.12)
# Function get_os_release_info - Determine and return OS name and version
#
# Args:

View File

@@ -89,7 +89,7 @@ perl -pi -e "s/^ver_hf = .*/ver_hf = $NEO_L0_VERSION_HOTFIX/" $BUILD_DIR/debian/
#needs a top level CMAKE file
cat << EOF | tee $BUILD_DIR/CMakeLists.txt
cmake_minimum_required (VERSION 3.2 FATAL_ERROR)
cmake_minimum_required (VERSION 3.13.0 FATAL_ERROR)
project(neo)

View File

@@ -88,7 +88,7 @@ fi
#needs a top level CMAKE file
cat << EOF | tee $BUILD_DIR/CMakeLists.txt
cmake_minimum_required (VERSION 3.2 FATAL_ERROR)
cmake_minimum_required (VERSION 3.13.0 FATAL_ERROR)
project(neo)