From bdbfadd4675b35f372ce3d9c7c9b4fa8ff91abc9 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 29 Dec 2014 02:34:16 -0800 Subject: [PATCH] Qt: Fix OS X build in some unusual circumstances --- CMakeLists.txt | 1 - src/platform/qt/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f352c4aae..6f9cc59d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,6 @@ endif() if(APPLE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.6") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -stdlib=libc++") endif() if(BUILD_BBB OR BUILD_RASPI) diff --git a/src/platform/qt/CMakeLists.txt b/src/platform/qt/CMakeLists.txt index 295c4050d..2855ec7e8 100644 --- a/src/platform/qt/CMakeLists.txt +++ b/src/platform/qt/CMakeLists.txt @@ -3,6 +3,10 @@ enable_language(CXX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11") +if(APPLE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -stdlib=libc++") +endif() + set(PLATFORM_SRC) if(BUILD_SDL)