From 473fc893e4c537a560c3109ca81e24187e920e2d Mon Sep 17 00:00:00 2001 From: SageMik <73378246+SageMik@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:35:44 +0800 Subject: [PATCH] =?UTF-8?q?BUILD=5FSQLITE3=E4=B8=BAOFF=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E9=93=BE=E6=8E=A5SQLite3=20(#145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6d7474b..0c23eee 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,6 +48,10 @@ else() target_include_directories(simple INTERFACE ${SQLITE3_HEADERS_DIR}) endif() -target_link_libraries(simple PUBLIC coverage_config PRIVATE PINYIN_TEXT SQLite3) +if(BUILD_SQLITE3) + target_link_libraries(simple PUBLIC coverage_config PRIVATE PINYIN_TEXT SQLite3) +else() + target_link_libraries(simple PUBLIC coverage_config PRIVATE PINYIN_TEXT) +endif() install(TARGETS simple DESTINATION bin)