diff options
| author | Vincent Neo <23420208+vincentneo@users.noreply.github.com> | 2023-09-16 16:04:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-16 11:04:27 +0300 |
| commit | bad52cd8dc9565448e2fa002952477dc417cf8c7 (patch) | |
| tree | 4a42502d12ea3b326208647bd8f22644e4e108dd /CMake/iOS.cmake | |
| parent | 03ccaa40aa4ad522cb6c790ad97542a69cb91026 (diff) | |
Fix building with Xcode 15 (#2606)
Diffstat (limited to 'CMake/iOS.cmake')
| -rw-r--r-- | CMake/iOS.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMake/iOS.cmake b/CMake/iOS.cmake index 79a1c9b1c..00e5411ce 100644 --- a/CMake/iOS.cmake +++ b/CMake/iOS.cmake @@ -200,8 +200,14 @@ if (NOT DEFINED IOS_ARCH) set (IOS_ARCH "x86_64;arm64") elseif (IOS_PLATFORM STREQUAL "WATCHOS") set (IOS_ARCH "armv7k;arm64_32;arm64") + + # Include C++ Standard Library for Xcode 15 builds. + include_directories(SYSTEM "${CMAKE_IOS_SDK_ROOT}/usr/include/c++/v1") elseif (IOS_PLATFORM STREQUAL "WATCHSIMULATOR") set (IOS_ARCH "x86_64;arm64") + + # Include C++ Standard Library for Xcode 15 builds. + include_directories(SYSTEM "${CMAKE_IOS_SDK_ROOT}/usr/include/c++/v1") elseif (IOS_PLATFORM STREQUAL "TVOS") set (IOS_ARCH "arm64") elseif (IOS_PLATFORM STREQUAL "TVSIMULATOR") |
