summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-03 15:42:12 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-03 15:42:42 (GMT)
commit8c10d98daf4bcd909a955574a37350f5ca98a48a (patch)
treed0b31a9c2a6ef537d4b4b8833a025096cab2e210 /Source
parent6e9634cb934ac32b87cb9949d705044554d7a0fb (diff)
parent30360cb05f848e4c5e40ea94d838d9a17afc11c6 (diff)
downloadCMake-8c10d98daf4bcd909a955574a37350f5ca98a48a.zip
CMake-8c10d98daf4bcd909a955574a37350f5ca98a48a.tar.gz
CMake-8c10d98daf4bcd909a955574a37350f5ca98a48a.tar.bz2
Merge topic 'cmake-compile-on-iOS'
30360cb05f iOS: Fix compilation of CMake itself Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5753
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 8a1ccd1..60d108b 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/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)