diff options
author | Sebastian Valle <subv2112@gmail.com> | 2016-12-13 18:46:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 18:46:42 +0100 |
commit | c96acc19418bdfc28ebb44894393cc86599050e7 (patch) | |
tree | a011671d656d719e561fc38d4cea4fc308b94937 | |
parent | Merge pull request #2315 from JamePeng/fix-gsp_gpu-code (diff) | |
parent | CMakeLists: Autodetect clang and only then use libc++ (diff) | |
download | yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.tar yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.tar.gz yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.tar.bz2 yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.tar.lz yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.tar.xz yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.tar.zst yuzu-c96acc19418bdfc28ebb44894393cc86599050e7.zip |
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c02c96840..2c00690c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,8 +183,10 @@ IF (APPLE) FIND_LIBRARY(COCOA_LIBRARY Cocoa) # Umbrella framework for everything GUI-related set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY}) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") + if (CMAKE_CXX_COMPILER_ID STREQUAL Clang) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") + endif() ELSEIF (WIN32) # WSAPoll and SHGetKnownFolderPath (AppData/Roaming) didn't exist before WinNT 6.x (Vista) add_definitions(-D_WIN32_WINNT=0x0600 -DWINVER=0x0600) |