From 91a799247dc5e4627e6b2f221669c8ff9238bc8d Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Wed, 15 May 2024 11:01:31 +0100 Subject: [PATCH] depends: Add host-specific `cmake_system_version` variables --- depends/hosts/darwin.mk | 3 +++ depends/hosts/linux.mk | 3 +++ depends/hosts/mingw32.mk | 2 ++ 3 files changed, 8 insertions(+) diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk index 61042397351..a27d8b323b6 100644 --- a/depends/hosts/darwin.mk +++ b/depends/hosts/darwin.mk @@ -76,3 +76,6 @@ darwin_debug_CFLAGS=-O1 -g darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS) darwin_cmake_system_name=Darwin +# Darwin version, which corresponds to OSX_MIN_VERSION. +# See https://en.wikipedia.org/wiki/Darwin_(operating_system) +darwin_cmake_system_version=20.1 diff --git a/depends/hosts/linux.mk b/depends/hosts/linux.mk index df01b6b2c04..e2f34265d15 100644 --- a/depends/hosts/linux.mk +++ b/depends/hosts/linux.mk @@ -39,4 +39,7 @@ i686_linux_CXX=$(default_host_CXX) -m32 x86_64_linux_CC=$(default_host_CC) -m64 x86_64_linux_CXX=$(default_host_CXX) -m64 endif + linux_cmake_system_name=Linux +# Refer to doc/dependencies.md for the minimum required kernel. +linux_cmake_system_version=3.17.0 diff --git a/depends/hosts/mingw32.mk b/depends/hosts/mingw32.mk index 6e868322d5e..c09f7b1e3a8 100644 --- a/depends/hosts/mingw32.mk +++ b/depends/hosts/mingw32.mk @@ -20,3 +20,5 @@ mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS) mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC mingw32_cmake_system_name=Windows +# Windows 7 (NT 6.1). +mingw32_cmake_system_version=6.1