From 14ffd1cc4ec4cf6a470f253ee08647a8dfff934d Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 8 Apr 2025 11:32:34 -0400 Subject: cmXCodeObject: Drop unused CoreFoundation header It has not been needed since commit d250b67722 (cmGlobalXCodeGenerator: Adopt pbxproj object id generation, 2021-01-06, v3.19.3~4^2~2). --- Source/cmXCodeObject.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx index ddd9669..f645f51 100644 --- a/Source/cmXCodeObject.cxx +++ b/Source/cmXCodeObject.cxx @@ -6,8 +6,6 @@ #include -#include - const char* cmXCodeObject::PBXTypeNames[] = { /* clang-format needs this comment to break after the opening brace */ "PBXGroup", -- cgit v0.12 From 42390e7aa20b8823462a1840c8bd00544c7a233a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 8 Apr 2025 01:27:39 +0800 Subject: 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 4c518ac..5968159 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 dd22b41..af7123a 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 7fa21d0..e691b1e 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 -- cgit v0.12