toolchain 4 ios build with local sdk
@@ -14,4 +14,15 @@ ELSE()
MESSAGE(FATAL_ERROR "There is no iOS SDK for the selected target platform")
ENDIF()
+# Apple C++ standard library headers are not in OS SDK but in Xcode toolchain
+IF (USE_STL_SYSTEM)
+ DECLARE_EXTERNAL_RESOURCE(XCODE_TOOLCHAIN_ROOT sbr:498971125)
+ IF (OS_IOS)
+ CFLAGS(
+ GLOBAL -isystem GLOBAL $XCODE_TOOLCHAIN_ROOT_RESOURCE_GLOBAL/usr/include/c++/v1
+ GLOBAL -isystem GLOBAL $XCODE_TOOLCHAIN_ROOT_RESOURCE_GLOBAL/usr/include
+ )
+ ENDIF()
+ENDIF()
+
END()
