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) 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