mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-17 04:54:48 +08:00
build: unify minimum required cmake version
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3830423b3a
commit
08b38581de
@@ -4,10 +4,9 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
|
|
||||||
if(WIN32)
|
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
|
||||||
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
|
if(POLICY CMP0065)
|
||||||
else()
|
cmake_policy(SET CMP0065 OLD)
|
||||||
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2020-2021 Intel Corporation
|
# Copyright (C) 2020-2024 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# 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)
|
# This file has no dependencies on other files (e.g., functions or definitions)
|
||||||
# of the local cmake environment.
|
# 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
|
# Function get_os_release_info - Determine and return OS name and version
|
||||||
#
|
#
|
||||||
# Args:
|
# Args:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2018-2020 Intel Corporation
|
# Copyright (C) 2018-2024 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# 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)
|
# This file has no dependencies on other files (e.g., functions or definitions)
|
||||||
# of the local cmake environment.
|
# 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
|
# Function get_os_release_info - Determine and return OS name and version
|
||||||
#
|
#
|
||||||
# Args:
|
# Args:
|
||||||
|
|||||||
@@ -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
|
#needs a top level CMAKE file
|
||||||
cat << EOF | tee $BUILD_DIR/CMakeLists.txt
|
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)
|
project(neo)
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ fi
|
|||||||
|
|
||||||
#needs a top level CMAKE file
|
#needs a top level CMAKE file
|
||||||
cat << EOF | tee $BUILD_DIR/CMakeLists.txt
|
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)
|
project(neo)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user