Skip to content

Restrict CMake package compatibility to the same major version - #610

Merged
SRombauts merged 2 commits into
masterfrom
fix-cmake-package-major-version
Oct 24, 2026
Merged

SRombauts merged 2 commits into
masterfrom
fix-cmake-package-major-version

Conversation

@SRombauts

Copy link
Copy Markdown
Owner

Use SameMajorVersion for the generated CMake package version file. This prevents find_package(SQLiteCpp 3.4) from accepting an installed SQLiteCpp 4.x package after the ABI break.

Prevent find_package(SQLiteCpp <version>) from accepting
incompatible major-version releases.
@coveralls

coveralls commented Oct 24, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 99.735%. remained the same — fix-cmake-package-major-version into master

@SRombauts
SRombauts merged commit 3607137 into master Oct 24, 2026
72 checks passed
@SRombauts
SRombauts deleted the fix-cmake-package-major-version branch October 24, 2026 12:00
SRombauts added a commit that referenced this pull request Oct 24, 2026
Backport the CMake package compatibility fix from #610 to the C++11
maintenance branch. A 3.x package will no longer satisfy requests for an
older major release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants