diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-06-26 15:06:59 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-06-26 17:43:54 +0300 |
commit | 962311a0dc6bd2063e8e20b6c28e1a570d948e90 (patch) | |
tree | 1cb92f2834965fcdbaca0b9ebe68831f84b2d887 /cmake/sqlite.cmake | |
parent | abf60753cb4671099053e6ad8a8c90535d66ccdc (diff) | |
download | qtlocation-mapboxgl-962311a0dc6bd2063e8e20b6c28e1a570d948e90.tar.gz |
[build] GCC 8.0 now implements 'cast-function-type'
Diffstat (limited to 'cmake/sqlite.cmake')
-rw-r--r-- | cmake/sqlite.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/sqlite.cmake b/cmake/sqlite.cmake index c38f36d23d..cc579b22ac 100644 --- a/cmake/sqlite.cmake +++ b/cmake/sqlite.cmake @@ -37,7 +37,11 @@ target_compile_options(sqlite ) if(CMAKE_COMPILER_IS_GNUCXX) - target_compile_options(sqlite PRIVATE "-Wno-bad-function-cast") + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) + target_compile_options(sqlite PRIVATE "-Wno-cast-function-type") + else() + target_compile_options(sqlite PRIVATE "-Wno-bad-function-cast") + endif() elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") target_compile_options(sqlite PRIVATE "-Wno-cast-function-type") endif() |