summaryrefslogtreecommitdiff
path: root/cmake/test.cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-11-16 10:53:54 +0100
committerKonstantin Käfer <mail@kkaefer.com>2018-11-28 14:49:44 +0100
commita0b8f01c1baf640f34c0f46ba22efd399b7a0012 (patch)
tree96d9cb1b5f0daaf21b2dad3d880a1dcf15dde37e /cmake/test.cmake
parent46edc91656a4468ff05f2a7b33c5fb036ab449d6 (diff)
downloadqtlocation-mapboxgl-a0b8f01c1baf640f34c0f46ba22efd399b7a0012.tar.gz
[build] use newer compiler versions for some builds
Diffstat (limited to 'cmake/test.cmake')
-rw-r--r--cmake/test.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/test.cmake b/cmake/test.cmake
index 053ba92d76..4f7933ade2 100644
--- a/cmake/test.cmake
+++ b/cmake/test.cmake
@@ -8,6 +8,8 @@ else()
add_executable(mbgl-test ${MBGL_TEST_FILES})
endif()
+# GCC 8+ trips over GTest's way of defining Test functions
+target_compile_options(mbgl-test PRIVATE -Wno-shadow)
if(NOT WITH_NODEJS)
target_compile_definitions(mbgl-test PRIVATE "-DTEST_HAS_SERVER=0")