From 320b4a77ef793497bcb43bd42c7958c43814f039 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 11 Dec 2020 17:12:49 -0800 Subject: [PATCH] build-system/iOS: ensure cmake works for Qt builds I stumbled across needing this when trying to build Kirigami via cmake (just like on Android). I abandoned that attempt, but there seems to be no harm in adding this. Signed-off-by: Dirk Hohndel --- packaging/ios/iPhoneDeviceCMakeToolchain | 1 + packaging/ios/iPhoneSimulatorCMakeToolchain | 1 + 2 files changed, 2 insertions(+) diff --git a/packaging/ios/iPhoneDeviceCMakeToolchain b/packaging/ios/iPhoneDeviceCMakeToolchain index 35d8b8923..fb233fd10 100644 --- a/packaging/ios/iPhoneDeviceCMakeToolchain +++ b/packaging/ios/iPhoneDeviceCMakeToolchain @@ -4,6 +4,7 @@ SET (CMAKE_CROSSCOMPILING TRUE) SET (CMAKE_SYSTEM_NAME "Darwin") SET (CMAKE_SYSTEM_PROCESSOR "arm") SET (CMAKE_OSX_SYSROOT "$ENV{PLATFORM_DIR}") +SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") SET (CMAKE_C_COMPILER $ENV{CC}) SET (CMAKE_CXX_COMPILER $ENV{CXX}) diff --git a/packaging/ios/iPhoneSimulatorCMakeToolchain b/packaging/ios/iPhoneSimulatorCMakeToolchain index 0d3cc40a4..6c428d2d6 100644 --- a/packaging/ios/iPhoneSimulatorCMakeToolchain +++ b/packaging/ios/iPhoneSimulatorCMakeToolchain @@ -4,6 +4,7 @@ SET (CMAKE_CROSSCOMPILING TRUE) SET (CMAKE_SYSTEM_NAME "Darwin") SET (CMAKE_SYSTEM_PROCESSOR "i386") SET (CMAKE_OSX_SYSROOT "$ENV{PLATFORM_DIR}") +SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") SET (CMAKE_C_COMPILER $ENV{CC}) SET (CMAKE_CXX_COMPILER $ENV{CXX})