File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Cla
15
15
set_target_properties (sqlite3 PROPERTIES COMPILE_FLAGS "-fPIC" )
16
16
endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" ))
17
17
18
- if (UNIX AND CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0 )
19
- target_compile_options (sqlite3 PRIVATE "-Wimplicit-fallthrough=0" )
18
+ if (UNIX AND CMAKE_COMPILER_IS_GNUCXX )
19
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0 )
20
+ target_compile_options (sqlite3 PRIVATE "-Wimplicit-fallthrough=0" )
21
+ endif ()
22
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0 )
23
+ target_compile_options (sqlite3 PRIVATE "-Wno-cast-function-type" )
24
+ endif ()
20
25
endif ()
You can’t perform that action at this time.
0 commit comments