From 563ba34a29a6f1704bd25fbe51a3d5a63dbe9c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Sat, 24 Oct 2026 13:39:34 +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 8f0f0a34..208cdf0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -404,7 +404,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 85d16e37a4cf1e4c09806308fa211eb522978d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Sat, 24 Oct 2026 13:40:51 +0200 Subject: [PATCH 2/2] docs: record CMake package compatibility fix (#611) --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b6dbc6b..ce1ad074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -340,3 +340,4 @@ Version 3.5.0 - 2026 ??? - Fix custom assertion handlers in Meson builds (#604) - Instrument unit tests and examples in UBSan builds (#605) - Update bundled SQLite from 3.53.4 to 3.54.1 (2026-10-16) (#606) +- Restrict CMake package compatibility to the same major version (#611)