New flags required for OS X/Skia port (m48 branch)

As now Skia uses <atomic> header file, we need C++11 and libc++
standard library when we compile with clang.
This commit is contained in:
David Capello 2015-12-17 17:43:13 -03:00
parent 70127f19e1
commit 7f8cbfd250

View File

@ -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") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu89")
endif() 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) if(NOT USE_SHARED_CURL)
set(CURL_STATICLIB ON BOOL) set(CURL_STATICLIB ON BOOL)
endif() endif()