mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Disable implicit fallthrough warning when building internal sqlite3 (#215)
-Wimplicit-fallthrough is available in gcc 7.0 and greater.
This commit is contained in:
parent
c1ab7075f4
commit
ce4eb187a4
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user