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
This commit is contained in:
Flyinghead 2025-04-30 16:40:25 +02:00
parent cdef7f7444
commit 57cc7b4a60
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ else()
$<$<COMPILE_LANGUAGE:CXX>:-Wall>)
endif()
if(${CMAKE_OSX_SYSROOT} MATCHES "\/MacOSX.platform\/Developer\/SDKs")
if(APPLE AND NOT IOS)
set(TARGET_MAC ON)
endif()