浏览代码

iOS: Fix compilation of CMake itself

There are no ApplicationServices on iOS.
Hayden 4 年之前
父节点
当前提交
30360cb05f
共有 1 个文件被更改,包括 5 次插入2 次删除
  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)