From 57cc7b4a60e6e8c1193f79b0ff30c7ddd2b02993 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 30 Apr 2025 16:40:25 +0200 Subject: [PATCH] Fix crash on apple silicon due to cmake 4 change The test to set TARGET_MAC doesn't work anymore with cmake 4. Fixes #1918 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01551e6a2..f1cdda80a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -248,7 +248,7 @@ else() $<$:-Wall>) endif() -if(${CMAKE_OSX_SYSROOT} MATCHES "\/MacOSX.platform\/Developer\/SDKs") +if(APPLE AND NOT IOS) set(TARGET_MAC ON) endif()