diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-07-11 11:33:51 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-07-11 11:59:54 +0200 |
commit | 79d980954111cd4f3096db41138b0d379c6607fb (patch) | |
tree | d02d5060b306d8ba4d0fae2b876d3b28ebe4eeee | |
parent | dc856ca4c323f656440d4de02da982dd24da8bce (diff) | |
download | qtlocation-mapboxgl-upstream/disable-gcc-only-warning-silencing-in-clang.tar.gz |
[build] Don't fail hard for unknown warning groupsupstream/disable-gcc-only-warning-silencing-in-clang
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 189f033b79..694147fc8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,10 @@ if(APPLE) endif() set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG") -if(CMAKE_COMPILER_IS_GNUCXX) + +if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unknown-warning-option") +elseif(CMAKE_COMPILER_IS_GNUCXX) # https://svn.boost.org/trac/boost/ticket/9240 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals") endif() |