From 7f1ae7f9f16409bba347200e2366011411e9cb50 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 3 Sep 2022 20:06:33 +0200 Subject: [PATCH] cmake: Require MacOSX 10.15 or newer --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d4fe3a0..280a0c95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,13 @@ else() set(LOGPREFIX "") endif() +# MacOSX: Require at least MacOSX 10.15 for C++17 support. +if(APPLE) + if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.15) + CacheSet(CMAKE_OSX_DEPLOYMENT_TARGET "10.15") + endif() +endif() + ################################################################################ # Modules ################################################################################