Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <dev@dominik-schmidt.de>2020-03-16 23:12:40 +0300
committerDominik Schmidt <domme@tomahawk-player.org>2020-03-17 15:39:39 +0300
commitf4c0116fea601858f4e83a22f323387038425e79 (patch)
tree8526f38693b87a4bd599700a5cdcb9d8f3a2379a /CMakeLists.txt
parentd1eb9afe756b608abaebb00f65bc37455a2f5f91 (diff)
Require sqlite only when BUILD_CLIENT == ON
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b4451b9d..1b94b8390 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,13 +21,6 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
-if (APPLE OR WIN32)
- set(USE_OUR_OWN_SQLITE3 TRUE)
-else()
- find_package(SQLite3 3.9.0 REQUIRED)
-endif()
-
-
if(UNIT_TESTING)
message(DEPRECATION "Setting UNIT_TESTING is deprecated please use BUILD_TESTING")
set(BUILD_TESTING TRUE)
@@ -151,7 +144,13 @@ if(BUILD_CLIENT)
find_package(Sphinx)
find_package(PdfLatex)
- find_package(ZLIB REQUIRED)
+ find_package(ZLIB REQUIRED)
+
+ if (APPLE OR WIN32)
+ set(USE_OUR_OWN_SQLITE3 TRUE)
+ else()
+ find_package(SQLite3 3.9.0 REQUIRED)
+ endif()
endif()
if (NOT DEFINED APPLICATION_ICON_NAME)