From 69d292a76da1caef3bbf98e01508b973453d722f Mon Sep 17 00:00:00 2001 From: "Otto@M4Pro" Date: Sun, 13 Jul 2025 00:43:04 +0800 Subject: [PATCH 1/2] neglect try_run() in sqlite and always build release and shared libray --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0940d1a..f22e8f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,11 @@ set(SQLITE3_SHA3_256 "75c118e727ee6a9a3d2c0e7c577500b0c16a848d109027f087b915b671 project(sqlite3 VERSION ${SQLITE3_VERSION} LANGUAGES C) +set(HAVE_GNU_STRERROR_R_EXITCODE 0 CACHE STRING "") +set(HAVE_GNU_STRERROR_R_COMPILED TRUE CACHE BOOL "") +set(CMAKE_BUILD_TYPE Release) +set(BUILD_SHARED_LIBS ON) + set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;MinSizeRel") if(CMAKE_GENERATOR MATCHES "Ninja Multi-Config") From 79334b7f281f7cc4aebcb9686dff5e8bc0f12cae Mon Sep 17 00:00:00 2001 From: Otto <36960644+cia1099@users.noreply.github.com> Date: Mon, 14 Jul 2025 04:29:15 +0800 Subject: [PATCH 2/2] Update CMakeLists.txt Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f22e8f4..96823f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ set(SQLITE3_SHA3_256 "75c118e727ee6a9a3d2c0e7c577500b0c16a848d109027f087b915b671 project(sqlite3 VERSION ${SQLITE3_VERSION} LANGUAGES C) set(HAVE_GNU_STRERROR_R_EXITCODE 0 CACHE STRING "") -set(HAVE_GNU_STRERROR_R_COMPILED TRUE CACHE BOOL "") +set(HAVE_GNU_STRERROR_R_COMPILED ON CACHE BOOL "") set(CMAKE_BUILD_TYPE Release) set(BUILD_SHARED_LIBS ON)