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 15:36:23 +0300 |
commit | e58563f704e1eaef853fe35cf5b2deb8ad5e5bdc (patch) | |
tree | fe114c5a7408b0da827e6ce8f6398778ee1ebd15 | |
parent | 3b90d95b938485936e9295c8a4044c93c7939cbf (diff) | |
download | qtlocation-mapboxgl-upstream/gcc-8-cast-function-type.tar.gz |
[build] GCC 8.0 now implements 'cast-function-type'upstream/gcc-8-cast-function-type
-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() |