diff --git a/CMakeLists.txt b/CMakeLists.txt index d7f6efa2..a05106e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ if (ANDROID) find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Svg) find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2) find_package(OpenSSL REQUIRED) - find_package(SQLite3 REQUIRED) + find_package(SQLite3) else() find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Widgets DBus) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0a2861d0..1c249ec1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -129,9 +129,11 @@ if(ANDROID) KF5::Kirigami2 Qt::Svg OpenSSL::SSL - SQLite::SQLite3 log ) + if(SQLite3_FOUND) + target_link_libraries(kasts PRIVATE SQLite::SQLite3) + endif() kirigami_package_breeze_icons(ICONS window-close