1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

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
This commit is contained in:
Sergey Fedorov
2025-04-08 01:27:39 +08:00
committed by Brad King
parent 14ffd1cc4e
commit 42390e7aa2
3 changed files with 9 additions and 3 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -57,7 +57,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>