diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-10 18:20:26 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-12 15:59:23 +0300 |
commit | 7bee780ee4bd983e9690d7ad2c92cd14a86f9c31 (patch) | |
tree | 42b5fee5aa6c0cf60e80059c6d2d8f953f8936da | |
parent | c1892b3a7ba0567a7ea5af75713a382964dc5798 (diff) | |
download | qtlocation-mapboxgl-7bee780ee4bd983e9690d7ad2c92cd14a86f9c31.tar.gz |
[build] OSX build fix for GCC 4.9
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 033c289018..d4265c44ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,7 @@ endif(WITH_COVERAGE) set(CMAKE_CONFIGURATION_TYPES Debug Release) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -ftemplate-depth=1024 -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Werror -Wno-variadic-macros -Wno-unknown-pragmas") -if(APPLE) +if(APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") # -Wno-error=unused-command-line-argument is required due to https://llvm.org/bugs/show_bug.cgi?id=7798 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument") endif() |