mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
cmake: Switch include_directories -> target_include_directories #36889
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36889
Loading…
Reference in a new issue
No description provided.
Delete branch "261116-non-target-directive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use of non-target directives is not recommended. As of CMake 4.5.0, such use triggers
-Wnon-target-directivewarnings:This PR:
Links
bitcoin_ipcagainstcore_interface, so thatipc/stub.cppis compiled with the project-wide build flags.Replaces the
include_directories()call insrc/CMakeLists.txtwithtarget_include_directories().Removes the custom
WarnAboutGlobalPropertiesmodule, which is superseded by the new CMake warning.The counterpart for the
secp256k1repo is https://github.com/bitcoin-core/secp256k1/pull/1996.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.No verified findings are available from this review.
Review coverage was incomplete.
Reviewed:
435d5b227748· Review report · Previous reportspermalink
Can you elaborate? Does this mean it wasn't working properly?
brewis already shipping CMake 4.5.0, so it should be in the CI any time from now, and I'd assume most macOS devs are already using it. So this could just be dropped now?It checks the properties of the current directory, which is the repo’s root. If I recall correctly, that was considered sufficient when the check was introduced, as all global compiler and linker flags are set there. The
include_directories()call fixed in this PR is the only case it missed.Sure. Dropped.
ACK
435d5b2277- going to merge this now, given it was mentioned on IRC that devs are seeing local build breakage (after updating CMake).Backported to
32.xin #36727.Backported to
31.xin #36901.Backported to
30.xin #36902.