mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
d78b50874c
* upgrade MacOS build settings for better C++20 compatibility * add fixes I forgot * 3rd try * Update UserManager.cpp * Update CMakeLists.txt * End with newline * Update CMakeLists.txt * update to reflect feedback * Update CMakeLists.txt to disable deprecation warnings on SHA512 * attempt to disable sqlite warnings * revert last attempt (didn't work) * disable sqlite deprecation warnings on MacOS
20 lines
570 B
CMake
20 lines
570 B
CMake
set (SQLITE3_SOURCES
|
|
"CppSQLite3.cpp"
|
|
"sqlite3.c"
|
|
)
|
|
|
|
add_library (sqlite3 ${SQLITE3_SOURCES})
|
|
|
|
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
|
|
target_compile_options(sqlite3 PRIVATE)
|
|
if(NOT APPLE)
|
|
target_compile_options(sqlite3 PRIVATE "-Wno-return-local-addr" "-Wno-maybe-uninitialized")
|
|
else()
|
|
target_compile_options(sqlite3 PRIVATE "-Wno-return-stack-address" "-Wno-uninitialized" "-Wno-deprecated-declarations")
|
|
endif()
|
|
endif()
|