Kaynağa Gözat

Merge branch 'backport-3.31-apple-CoreFoundation-headers'

Brad King 6 ay önce
ebeveyn
işleme
d736dafa22

+ 2 - 1
Source/CPack/cmCPackDragNDropGenerator.cxx

@@ -10,7 +10,8 @@
 #include <cm/string_view>
 #include <cmext/string_view>
 
-#include <CoreFoundation/CoreFoundation.h>
+#include <CoreFoundation/CFLocale.h>
+#include <CoreFoundation/CFString.h>
 #include <cm3p/kwiml/abi.h>
 
 #include "cmsys/Base64.h"

+ 3 - 1
Source/cmFindProgramCommand.cxx

@@ -18,7 +18,9 @@
 class cmExecutionStatus;
 
 #if defined(__APPLE__)
-#  include <CoreFoundation/CoreFoundation.h>
+#  include <CoreFoundation/CFBundle.h>
+#  include <CoreFoundation/CFString.h>
+#  include <CoreFoundation/CFURL.h>
 #endif
 
 struct cmFindProgramHelper

+ 4 - 1
Source/cmGlobalXCodeGenerator.cxx

@@ -58,7 +58,10 @@
 #include "cmake.h"
 
 #if !defined(CMAKE_BOOTSTRAP) && defined(__APPLE__)
-#  include <CoreFoundation/CoreFoundation.h>
+#  include <CoreFoundation/CFBundle.h>
+#  include <CoreFoundation/CFString.h>
+#  include <CoreFoundation/CFURL.h>
+#  include <CoreFoundation/CFUUID.h>
 #  if !TARGET_OS_IPHONE
 #    define HAVE_APPLICATION_SERVICES
 #    include <ApplicationServices/ApplicationServices.h>

+ 0 - 2
Source/cmXCodeObject.cxx

@@ -6,8 +6,6 @@
 
 #include <cmext/string_view>
 
-#include <CoreFoundation/CoreFoundation.h>
-
 char const* cmXCodeObject::PBXTypeNames[] = {
   /* clang-format needs this comment to break after the opening brace */
   "PBXGroup",