iOS requires 3.14.5 version and we have a special case for it. Since this is a minor version difference, and no distro is particularly providing cmake 3.14.2 package, it is safe to update to 3.14.5 to cover our supported platform matrix.
Discussion: https://github.com/dotnet/runtime/pull/33959#discussion_r396389297
Fixes: https://github.com/dotnet/runtime/issues/33976
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Toolchain Setup
---------------
-Building the repo requires CMake 3.14.2 or newer on Linux. Add Kitware's APT feed to your configuration for a newer version of CMake. See their instructions at <https://apt.kitware.com/>. You may need to add LLVM's APT feed to your configuration to obtain the required version of clang/LLVM. See their instructions at <https://apt.llvm.org/>.
+Building the repo requires CMake 3.14.5 or newer on Linux. Add Kitware's APT feed to your configuration for a newer version of CMake. See their instructions at <https://apt.kitware.com/>. You may need to add LLVM's APT feed to your configuration to obtain the required version of clang/LLVM. See their instructions at <https://apt.llvm.org/>.
Install the following packages for the toolchain:
function version { echo "$@" | awk -F. '{ printf("%d%02d%02d\n", $1,$2,$3); }'; }
- local cmake_version="$(cmake --version | awk '/^cmake.* version [0-9]+\.[0-9]+\.[0-9]+$/ {print $3}')"
+ local cmakeRequiredMinimumVersion="3.14.5"
+ local cmakeInstalledVersion="$(cmake --version | awk '/^cmake.* version [0-9]+\.[0-9]+\.[0-9]+$/ {print $3}')"
- if [[ "$(version "$cmake_version")" -lt "$(version 3.14.2)" ]]; then
- echo "Please install CMake 3.14.2 or newer from https://cmake.org/download/ or https://apt.kitware.com and ensure it is on your path."; exit 1;
+ if [[ "$(version "$cmakeInstalledVersion")" -lt "$(version "$cmakeRequiredMinimumVersion")" ]]; then
+ echo "Found cmake v$cmakeInstalledVersion in PATH. Please install v$cmakeRequiredMinimumVersion or newer from https://www.cmake.org/download/."
+ exit 1;
fi
if [[ "$__HostOS" == "OSX" ]]; then
"dotnet": "5.0.100-preview.6.20266.3"
},
"native-tools": {
- "cmake": "3.14.2",
+ "cmake": "3.14.5",
"python3": "3.7.1"
},
"msbuild-sdks": {
-cmake_minimum_required(VERSION 3.14.2)
+cmake_minimum_required(VERSION 3.14.5)
cmake_policy(SET CMP0042 NEW)
-cmake_minimum_required(VERSION 3.14.2)
+cmake_minimum_required(VERSION 3.14.5)
# Compile options
add_definitions(-DLP64COMPATIBLE)
-cmake_minimum_required(VERSION 3.14.2)
+cmake_minimum_required(VERSION 3.14.5)
cmake_policy(SET CMP0042 NEW)
project(Tests)
-cmake_minimum_required(VERSION 3.5.2)
+cmake_minimum_required(VERSION 3.14.5)
project(Profiler)
-cmake_minimum_required(VERSION 3.14.2)
+cmake_minimum_required(VERSION 3.14.5)
project(corehost)
# The .NET Foundation licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
-cmake_minimum_required (VERSION 2.6)
+cmake_minimum_required (VERSION 3.14.5)
project(mockhostfxr_2_2)
set(DOTNET_PROJECT_NAME "mockhostfxr_2_2")
-cmake_minimum_required(VERSION 3.14.2)
+cmake_minimum_required(VERSION 3.14.5)
cmake_policy(SET CMP0042 NEW)
project(CoreFX C)
include(${CLR_ENG_NATIVE_DIR}/configuretools.cmake)
-if(CLR_CMAKE_TARGET_IOS OR CLR_CMAKE_TARGET_TVOS)
- # CMake 3.14.5 contains bug fixes for iOS
- cmake_minimum_required(VERSION 3.14.5)
-endif()
-
if(NOT CLR_CMAKE_TARGET_BROWSER)
cmake_policy(SET CMP0083 NEW)
endif(NOT CLR_CMAKE_TARGET_BROWSER)
-cmake_minimum_required(VERSION 3.14.2)
+cmake_minimum_required(VERSION 3.14.5)
# C Compiler flags
SET (CMAKE_C_FLAGS_INIT "/W0 /FC")
-cmake_minimum_required (VERSION 3.10)
+cmake_minimum_required (VERSION 3.14.5)
project (mono)