From 9588193656a9aa98935a2b0407e5ed9ef6814106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Sat, 24 Oct 2026 13:39:36 +0200 Subject: [PATCH 1/2] Restrict CMake package compatibility to same major Prevent find_package(SQLiteCpp ) from accepting incompatible major-version releases. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bb2dcec..c8273a56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -406,7 +406,7 @@ if (SQLITECPP_INSTALL) write_basic_package_version_file( cmake/${PROJECT_NAME}ConfigVersion.cmake VERSION ${PROJECT_VERSION} - COMPATIBILITY AnyNewerVersion) + COMPATIBILITY SameMajorVersion) configure_package_config_file( cmake/${PROJECT_NAME}Config.cmake.in cmake/${PROJECT_NAME}Config.cmake From 5d18223afe0663db5ee7de11f3259972b459cb30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Sat, 24 Oct 2026 13:40:49 +0200 Subject: [PATCH 2/2] docs: record CMake package compatibility fix (#610) --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b6c219..655a1d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve tests for `Savepoint::rollbackTo()` and scope-exit rollback semantics (#584) - Fix link errors in supplied assertion handlers and add handler-enabled CI coverage (#587) - Make column type constants usable in constant expressions (ABI change) (#609) +- Restrict CMake package compatibility to the same major version (#610) ### Removed