summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-07-11 11:33:51 +0200
committerJason Wray <jason@mapbox.com>2017-08-25 15:37:13 -0400
commit1f5a0ec48bc9853674e00ada341af3a352aa02ad (patch)
tree66df82c7a4f9096478a03526e1181b1690e941c9
parentfb07beebb4d7284047ecba1af31b82b22be5e67a (diff)
downloadqtlocation-mapboxgl-1f5a0ec48bc9853674e00ada341af3a352aa02ad.tar.gz
[build] Don't fail hard for unknown warning groups
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8144d880ce..7ac2ea7e0f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,7 +73,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()