Forráskód Böngészése

iOS: Fix compilation of CMake itself

There are no ApplicationServices on iOS.
Hayden 4 éve
szülő
commit
30360cb05f
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      Source/cmGlobalXCodeGenerator.cxx

+ 5 - 2
Source/cmGlobalXCodeGenerator.cxx

@@ -47,8 +47,11 @@
 struct cmLinkImplementation;
 
 #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
 
 #if !defined(CMAKE_BOOTSTRAP)