Files
merge-script d55f55eda7 Merge bitcoin/bitcoin#36889: cmake: Switch include_directories -> target_include_directories
435d5b2277 cmake: Remove `WarnAboutGlobalProperties` module (Hennadii Stepanov)
460f877fac cmake: Switch `include_directories` -> `target_include_directories` (Hennadii Stepanov)
4ef05d6f45 cmake: Link `bitcoin_ipc` against `core_interface` (Hennadii Stepanov)

Pull request description:

  Use of non-target directives is not recommended. As of CMake 4.5.0, such use triggers `-Wnon-target-directive` warnings:
  ```console
  $ cmake -B build -Wnon-target-directive
  <snip>
  CMake Warning (non-target-directive) at src/CMakeLists.txt:8 (include_directories):
    Use of non-target directives is not recommended.  Consider
    target_include_directories instead.
  This warning is for project developers.  Use -Wno-author or
  -Wno-non-target-directive to suppress it.

  <snip>
  ```

  This PR:
  1. Links `bitcoin_ipc` against `core_interface`, so that `ipc/stub.cpp` is compiled with the project-wide build flags.

  2. Replaces the `include_directories()` call in `src/CMakeLists.txt` with `target_include_directories()`.

  3. Removes the custom [`WarnAboutGlobalProperties`](https://github.com/bitcoin/bitcoin/blob/29f7e30d547c30ddb7a637bc3a2dbc7c0e3f5469/cmake/module/WarnAboutGlobalProperties.cmake) module, which is superseded by the new CMake warning.

  ---

  The counterpart for the `secp256k1` repo is https://github.com/bitcoin-core/secp256k1/pull/1996.

ACKs for top commit:
  fanquake:
    ACK 435d5b2277 - going to merge this now, given it was mentioned on IRC that devs are seeing local build breakage (after updating CMake).

Tree-SHA512: 92400cca2315c5b145a8c70687fa3c58e44ffd9ab2ec2cb6c1fb7579316b5cc81897b1cc4f41ae4a35096f53139c7b9075ce617d68399807c87462d630665699
2026-11-18 15:56:01 +00:00
..