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