diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-12-11 17:12:49 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 09:17:54 -0800 |
commit | 320b4a77ef793497bcb43bd42c7958c43814f039 (patch) | |
tree | bb177f9dfdcc08e5dbf4807d0a3fbc080e0a3a3f /packaging | |
parent | c5074c8af50c492c5b500c265477a8d7b40681f7 (diff) | |
download | subsurface-320b4a77ef793497bcb43bd42c7958c43814f039.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/ios/iPhoneDeviceCMakeToolchain | 1 | ||||
-rw-r--r-- | packaging/ios/iPhoneSimulatorCMakeToolchain | 1 |
2 files changed, 2 insertions, 0 deletions
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}) |