aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@theqtcompany.com>2016-05-11 11:37:16 +0200
committerAlexandru Croitor <alexandru.croitor@theqtcompany.com>2016-05-11 13:18:03 +0000
commitc8608f268f6461c421055ff3df1fd72d616cb646 (patch)
tree9d4f8762fc52ffa7403035e5a879c3991a0495c4
parent1eb5ccf5208d775e1e70b2332d9a61df00612801 (diff)
Add option to link with libc++ on older OSX versions.
Change-Id: I0e5b0486a03010386195e09702fbff72843ef28e Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2fad8e5..7be3488 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,13 @@ configure_file("pyside2uic/__init__.py.in" "${CMAKE_CURRENT_BINARY_DIR}/pyside2u
option(BUILD_TESTS "Build tests." TRUE)
+if(CMAKE_HOST_APPLE)
+ set(OSX_USE_LIBCPP "OFF" CACHE BOOL "Explicitly link the libc++ standard library (useful for osx deployment targets lower than 10.9.")
+ if(OSX_USE_LIBCPP)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
+ endif()
+endif()
+
# UIC stuff
if (NOT SITE_PACKAGE)
execute_process(