1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

bootstrap: Fix libuv target platform conditions on macOS

In commit 714ce72882 (bootstrap: Make libuv available during bootstrap,
2017-09-13, v3.10.0-rc1~106^2) we modified libuv to use POSIX interfaces
during bootstrap.  However, some code still expects `TARGET_OS_IPHONE`
to be defined on Apple platforms to either `0` or `1`.  In order to
offer this, include `<TargetConditionals.h>` on Apple platforms even
when bootstrapping.
This commit is contained in:
Brad King
2020-07-22 14:42:04 -04:00
parent d45f0d719e
commit e771330dd4

View File

@@ -47,6 +47,9 @@
#ifdef CMAKE_BOOTSTRAP
# include "posix.h"
# if defined(__APPLE__)
# include <TargetConditionals.h>
# endif
#elif defined(__linux__)
# include "linux.h"
#elif defined (__MVS__)