You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake 4.3 deprecated the SQLite::SQLite3 imported target in favor of SQLite3::SQLite3. With CMake 4.3, every configure prints this author warning nine times:
CMake Warning (author) at src/wallet/CMakeLists.txt:59 (target_link_libraries):
The library that is being linked to, SQLite::SQLite3, is marked as being
deprecated by the owner.
What was done?
Backport of bitcoin#34848 (cmake: Migrate away from deprecated SQLite3 target). The wallet links SQLite3::SQLite3. With CMake older than 4.3, that name is defined as an alias of SQLite::SQLite3, and for vcpkg as an alias of unofficial::sqlite3::sqlite3.
Dash adaptation: SQLite is still optional next to BDB, so the wallet links it inside its if(USE_SQLITE) block. The new name replaces both target names there.
How Has This Been Tested?
On develop, configuring against depends with CMake 4.3.4 prints the warning 9 times. With this change it prints none, with CMake 4.3.4 or 4.2.3.
With CMake 4.3.4 (native target), the full build succeeds and the wallet, db and coin selection unit tests (12) pass.
With CMake 4.2.3 (alias path), dash-wallet builds and links.
With -DWITH_SQLITE=OFF -DWITH_BDB=ON, configure and the dash-wallet build still succeed.
Breaking Changes
None.
Checklist:
I have performed a self-review of my own code
I have made corresponding changes to the documentation
I have assigned this pull request to a milestone (if you have permission to set one)
498b6eb cmake: Migrate away from deprecated SQLite3 target (Daniel Pfeifer)
Pull request description:
CMake version 4.3 deprecated the imported target `Sqlite::Sqlite3`.
Use the preferred name `Sqlite3::Sqlite3` instead and provide an alias for older versions of CMake.
Also define the same alias when using vcpkg.
ACKs for top commit:
hebasto:
ACK 498b6eb, tested on Fedora 43 using CMake 3.22.6 and 4.3.0.
Tree-SHA512: 8ec0e9673ea39c4383d2995d804498675f9bcd1196ec586f338cb3fa63aa632f160dd179bda3c2d70d932d8b1ac821c15d8247e7302465420937c9227f1bf20a
(cherry picked from commit a7514c1)
Dash adaptation: the wallet links SQLite inside its `if(USE_SQLITE)`
block, because SQLite is still optional next to BDB here, so the
alias replaces both target names there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
No actionable comments were generated in the recent review.
Walkthrough
The CMake configuration aliases SQLite targets to SQLite3::SQLite3 for vcpkg and package-based setups. When USE_SQLITE is enabled, bitcoin_wallet links directly to SQLite3::SQLite3.
This change switches the wallet's SQLite CMake target to a non-deprecated name, which avoids the CMake 4.3 warnings. No concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the change: a backport of bitcoin#34848 that migrates the SQLite3 link target away from the deprecated name. The raw summary and objectives both describe the CMake target change in the…
Description check
The description explains the CMake 4.3 deprecation of SQLite::SQLite3, the switch to SQLite3::SQLite3 in the wallet's if(USE_SQLITE) block, the alias handling for older CMake and vcpkg, and the testin…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the change: a backport of bitcoin#34848 that migrates the SQLite3 link target away from the deprecated name. The raw summary and objectives both describe the CMake target change in the wallet and root CMakeLists, so the title matches the main change. It is specific and references the upstream PR.
Full details: Description check
Explanation
The description explains the CMake 4.3 deprecation of SQLite::SQLite3, the switch to SQLite3::SQLite3 in the wallet's if(USE_SQLITE) block, the alias handling for older CMake and vcpkg, and the testing performed. It matches the changeset closely.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 133af454-1d2d-4053-99e5-86aa8315d2cd
Commits
Reviewing files that changed from the base of the PR and between d412e52 and 5f9a832.
Files selected for processing: 2
CMakeLists.txt
src/wallet/CMakeLists.txt
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Final validation — Phase 1 + Phase 2
Verified head 5f9a832. The two-file backport correctly provides SQLite3::SQLite3 aliases for older CMake and vcpkg, and the wallet consumes the target only when SQLite support is enabled; no in-scope correctness issues were found. Lint, ClangFormat, and cppcheck passed; source-build checks were still pending in the supplied CI snapshot, while the unrelated failed milestone check was contradicted by a passing duplicate.
Triage: low by gpt-6.1-sol (effort low) — This is a small, contained CMake target-name migration with no runtime behavior or critical-surface changes, though cross-version build compatibility merits focused review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
CMake 4.3 deprecated the
SQLite::SQLite3imported target in favor ofSQLite3::SQLite3. With CMake 4.3, every configure prints this author warning nine times:What was done?
Backport of bitcoin#34848 (cmake: Migrate away from deprecated SQLite3 target). The wallet links
SQLite3::SQLite3. With CMake older than 4.3, that name is defined as an alias ofSQLite::SQLite3, and for vcpkg as an alias ofunofficial::sqlite3::sqlite3.Dash adaptation: SQLite is still optional next to BDB, so the wallet links it inside its
if(USE_SQLITE)block. The new name replaces both target names there.How Has This Been Tested?
dash-walletbuilds and links.-DWITH_SQLITE=OFF -DWITH_BDB=ON, configure and thedash-walletbuild still succeed.Breaking Changes
None.
Checklist:
🤖 Generated with Claude Code