mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 07:11:52 +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:

committed by
Brad King

parent
14ffd1cc4e
commit
42390e7aa2
@@ -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"
|
||||
|
@@ -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
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user