all repos — mgba @ 5da7198d07fe87f8f508567dc83d7f3b6707668c

mGBA Game Boy Advance Emulator

Qt: Fix build with some non-Apple versions of GCC
Jeffrey Pfau jeffrey@endrift.com
Fri, 03 Apr 2015 21:12:37 -0700
commit

5da7198d07fe87f8f508567dc83d7f3b6707668c

parent

065474d14e6a154ff1c768df40dca757ae53468f

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -4,7 +4,10 @@

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)