From 02cadc264e62469efc7cee6938ffcd3669ad0fd4 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 14 Apr 2025 20:42:37 +0200 Subject: [PATCH] build: Try to use macOS 13 SDK if possible --- lib/libimhex/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libimhex/CMakeLists.txt b/lib/libimhex/CMakeLists.txt index e4a6feb7d..970b97ea6 100644 --- a/lib/libimhex/CMakeLists.txt +++ b/lib/libimhex/CMakeLists.txt @@ -57,12 +57,12 @@ set(LIBIMHEX_SOURCES ) if (APPLE) - set(OSX_11_0_SDK_PATH /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk) + set(OSX_SDK_PATH /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk) if (NOT CMAKE_OSX_SYSROOT) - if (IS_DIRECTORY ${OSX_11_0_SDK_PATH}) - set(CMAKE_OSX_SYSROOT ${OSX_11_0_SDK_PATH}) + if (IS_DIRECTORY ${OSX_SDK_PATH}) + set(CMAKE_OSX_SYSROOT ${OSX_SDK_PATH}) else () - message(WARNING "CMAKE_OSX_SYSROOT not set and macOS 10.9 SDK not found! Using default one.") + message(WARNING "CMAKE_OSX_SYSROOT not set and macOS SDK not found! Using default one.") endif () endif ()