2022-08-19 02:23:42 +00:00
|
|
|
set (SQLITE3_SOURCES
|
|
|
|
"CppSQLite3.cpp"
|
|
|
|
"sqlite3.c"
|
|
|
|
)
|
|
|
|
|
2024-12-18 00:07:07 +00:00
|
|
|
add_library(sqlite3 ${SQLITE3_SOURCES})
|
2022-08-19 02:23:42 +00:00
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
# Add warning disable flags and link Unix libraries to sqlite3
|
|
|
|
target_link_libraries(sqlite3 pthread dl m)
|
|
|
|
|
|
|
|
# -Wno-unused-result -Wno-unknown-pragmas -fpermissive
|
2024-01-19 16:18:36 +00:00
|
|
|
target_compile_options(sqlite3 PRIVATE)
|
2024-11-18 01:03:54 +00:00
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
2024-01-19 16:18:36 +00:00
|
|
|
target_compile_options(sqlite3 PRIVATE "-Wno-return-local-addr" "-Wno-maybe-uninitialized")
|
|
|
|
else()
|
2024-01-30 03:45:50 +00:00
|
|
|
target_compile_options(sqlite3 PRIVATE "-Wno-return-stack-address" "-Wno-uninitialized" "-Wno-deprecated-declarations")
|
2024-01-19 16:18:36 +00:00
|
|
|
endif()
|
2022-08-19 02:23:42 +00:00
|
|
|
endif()
|