소스 검색

tools/cmake: disable xcode generator

Fixes build on latest macOS SDK

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 1 년 전
부모
커밋
383b68e73c
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      tools/cmake/patches/160-disable_xcode_generator.patch

+ 22 - 0
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"
+