Browse Source

iOS: Fix compilation of CMake itself

There are no ApplicationServices on iOS.
Hayden 4 years ago
parent
commit
30360cb05f
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Source/cmGlobalXCodeGenerator.cxx

+ 5 - 2
Source/cmGlobalXCodeGenerator.cxx

@@ -47,8 +47,11 @@
 struct cmLinkImplementation;
 struct cmLinkImplementation;
 
 
 #if !defined(CMAKE_BOOTSTRAP) && defined(__APPLE__)
 #if !defined(CMAKE_BOOTSTRAP) && defined(__APPLE__)
-#  define HAVE_APPLICATION_SERVICES
-#  include <ApplicationServices/ApplicationServices.h>
+#  include <CoreFoundation/CoreFoundation.h>
+#  if !TARGET_OS_IPHONE
+#    define HAVE_APPLICATION_SERVICES
+#    include <ApplicationServices/ApplicationServices.h>
+#  endif
 #endif
 #endif
 
 
 #if !defined(CMAKE_BOOTSTRAP)
 #if !defined(CMAKE_BOOTSTRAP)