From 42390e7aa20b8823462a1840c8bd00544c7a233a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 8 Apr 2025 01:27:39 +0800 Subject: [PATCH] Source: Include specific CoreFoundation headers instead of umbrella header Some CoreFoundation headers included by the umbrella header, which we do not need, use syntax that GCC does not support. Avoid including them. GCC-Issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115880 --- Source/CPack/cmCPackDragNDropGenerator.cxx | 3 ++- Source/cmFindProgramCommand.cxx | 4 +++- Source/cmGlobalXCodeGenerator.cxx | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 4c518ac38a..5968159752 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -10,7 +10,8 @@ #include #include -#include +#include +#include #include #include "cmsys/Base64.h" diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx index dd22b41882..af7123a12d 100644 --- a/Source/cmFindProgramCommand.cxx +++ b/Source/cmFindProgramCommand.cxx @@ -18,7 +18,9 @@ class cmExecutionStatus; #if defined(__APPLE__) -# include +# include +# include +# include #endif struct cmFindProgramHelper diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 7fa21d037f..e691b1eeb5 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -57,7 +57,10 @@ #include "cmake.h" #if !defined(CMAKE_BOOTSTRAP) && defined(__APPLE__) -# include +# include +# include +# include +# include # if !TARGET_OS_IPHONE # define HAVE_APPLICATION_SERVICES # include