mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Ignore the USE_OUR_OWN_SQLITE3 flag.
Always look for sqlite in the system in the 3 platforms. Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
536e09fac5
commit
60d975d1dc
2 changed files with 4 additions and 18 deletions
|
@ -15,9 +15,7 @@ if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
|
|||
# add -Wconversion ?
|
||||
# cannot be pedantic with sqlite3 directly linked
|
||||
# FIXME Can we somehow not use those flags for sqlite3.* but use them for the rest of csync?
|
||||
if (NOT USE_OUR_OWN_SQLITE3)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors")
|
||||
endif()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
|
||||
|
|
|
@ -19,11 +19,7 @@ include(DefineOptions.cmake)
|
|||
|
||||
include(DefineInstallationPaths)
|
||||
|
||||
if (APPLE OR WIN32)
|
||||
set(USE_OUR_OWN_SQLITE3 TRUE)
|
||||
else()
|
||||
find_package(SQLite3 3.8.0 REQUIRED)
|
||||
endif()
|
||||
|
||||
include(ConfigureChecks.cmake)
|
||||
include(../common/common.cmake)
|
||||
|
@ -70,16 +66,8 @@ target_include_directories(
|
|||
PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/std
|
||||
)
|
||||
|
||||
if(USE_OUR_OWN_SQLITE3)
|
||||
message(STATUS "Using own sqlite3 version")
|
||||
add_library(sqlite3 STATIC "${CMAKE_SOURCE_DIR}/src/3rdparty/sqlite3/sqlite3.c")
|
||||
target_include_directories(sqlite3 PUBLIC "${CMAKE_SOURCE_DIR}/src/3rdparty/sqlite3")
|
||||
target_link_libraries(nextcloud_csync PUBLIC sqlite3)
|
||||
else()
|
||||
target_include_directories(nextcloud_csync PUBLIC ${SQLITE3_INCLUDE_DIR})
|
||||
target_link_libraries(nextcloud_csync PUBLIC ${SQLITE3_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
||||
generate_export_header(nextcloud_csync
|
||||
EXPORT_MACRO_NAME OCSYNC_EXPORT
|
||||
|
|
Loading…
Reference in a new issue