summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorHayden <me@diatr.us>2021-01-29 20:46:32 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-02 13:45:11 (GMT)
commit30360cb05f848e4c5e40ea94d838d9a17afc11c6 (patch)
treed9622be56582d0f45ff2055891c753a7ee73f2af /Source/cmGlobalXCodeGenerator.cxx
parentc5691f03e5626f30c432d325ab75117ad1e98bd8 (diff)
downloadCMake-30360cb05f848e4c5e40ea94d838d9a17afc11c6.zip
CMake-30360cb05f848e4c5e40ea94d838d9a17afc11c6.tar.gz
CMake-30360cb05f848e4c5e40ea94d838d9a17afc11c6.tar.bz2
iOS: Fix compilation of CMake itself
There are no ApplicationServices on iOS.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-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)