tools/cmake: disable xcode generator

Fixes build on latest macOS SDK

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2024-03-24 10:59:22 +01:00
parent c9ae8fd3d4
commit 383b68e73c
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -846,7 +846,7 @@ if(CMake_USE_XCOFF_PARSER)
endif()
# Xcode only works on Apple
-if(APPLE)
+if(APPLE_DISABLED)
target_sources(
CMakeLib
PRIVATE
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -132,7 +132,7 @@
# include "cmGlobalGhsMultiGenerator.h"
#endif
-#if defined(__APPLE__)
+#if defined(__APPLE_DISABLED__)
# if !defined(CMAKE_BOOTSTRAP)
# include "cmGlobalXCodeGenerator.h"