From 7f8cbfd2501c8ee5c9a6c5eda82ede7ee1a8de19 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 17 Dec 2015 17:43:13 -0300 Subject: [PATCH] New flags required for OS X/Skia port (m48 branch) As now Skia uses header file, we need C++11 and libc++ standard library when we compile with clang. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c96a1a43a..e5a0acccb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,10 @@ if(NOT WIN32 AND NOT APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu89") endif() +if(APPLE AND USE_SKIA_BACKEND) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") +endif() + if(NOT USE_SHARED_CURL) set(CURL_STATICLIB ON BOOL) endif()