From 30360cb05f848e4c5e40ea94d838d9a17afc11c6 Mon Sep 17 00:00:00 2001 From: Hayden Date: Fri, 29 Jan 2021 15:46:32 -0500 Subject: iOS: Fix compilation of CMake itself There are no ApplicationServices on iOS. --- Source/cmGlobalXCodeGenerator.cxx | 7 +++++-- 1 file 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 +# include +# if !TARGET_OS_IPHONE +# define HAVE_APPLICATION_SERVICES +# include +# endif #endif #if !defined(CMAKE_BOOTSTRAP) -- cgit v0.12