From 3b0e5a59a288b165e7fac26c22ff51ee524e1568 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 13 Jun 2019 18:57:25 +0300 Subject: [core] Implement C++ render test runner --- cmake/sqlite.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmake/sqlite.cmake') diff --git a/cmake/sqlite.cmake b/cmake/sqlite.cmake index fd2d98d3e2..c38f36d23d 100644 --- a/cmake/sqlite.cmake +++ b/cmake/sqlite.cmake @@ -34,5 +34,10 @@ target_compile_definitions(sqlite target_compile_options(sqlite PRIVATE "-Wno-int-conversion" PRIVATE "-Wno-implicit-fallthrough" - PRIVATE "-Wno-cast-function-type" ) + +if(CMAKE_COMPILER_IS_GNUCXX) + target_compile_options(sqlite PRIVATE "-Wno-bad-function-cast") +elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") + target_compile_options(sqlite PRIVATE "-Wno-cast-function-type") +endif() -- cgit v1.2.1