[openwrt/openwrt] tools/cmake: disable xcode generator
LEDE Commits
lede-commits at lists.infradead.org
Fri Mar 29 09:29:30 PDT 2024
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/383b68e73cc9f4cdeaa92b2cf7d20142a4a9a9ae
commit 383b68e73cc9f4cdeaa92b2cf7d20142a4a9a9ae
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Mar 24 10:59:22 2024 +0100
tools/cmake: disable xcode generator
Fixes build on latest macOS SDK
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../patches/160-disable_xcode_generator.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/tools/cmake/patches/160-disable_xcode_generator.patch b/tools/cmake/patches/160-disable_xcode_generator.patch
new file mode 100644
index 0000000000..20d1086bd4
--- /dev/null
+++ b/tools/cmake/patches/160-disable_xcode_generator.patch
@@ -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"
+
More information about the lede-commits
mailing list