Disable implicit fallthrough warning when building internal sqlite3 (#215)

-Wimplicit-fallthrough is available in gcc 7.0 and greater.
This commit is contained in:
Richard Hozák 2019-08-14 08:02:15 +02:00 committed by Sébastien Rombauts
parent c1ab7075f4
commit ce4eb187a4

View File

@ -14,3 +14,7 @@ add_library(sqlite3
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
if (UNIX AND CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
target_compile_options(sqlite3 PRIVATE "-Wimplicit-fallthrough=0")
endif()