Qt: Fix build with some non-Apple versions of GCC

This commit is contained in:
Jeffrey Pfau 2015-04-03 21:12:37 -07:00
parent 065474d14e
commit 5da7198d07
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,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++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
endif()
set(PLATFORM_SRC)