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
1515 set_target_properties (sqlite3 PROPERTIES COMPILE_FLAGS "-fPIC" )
1616endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" ))
1717
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 ()
2025endif ()
You can’t perform that action at this time.
0 commit comments