Skip to content

Commit

Permalink
Merge #332: cmake: Maintain build-time dependencies for the `check-sy…
Browse files Browse the repository at this point in the history
…mbols` and `check-security` targets

943b0ca fixup! cmake: Add `Maintenance` module (Hennadii Stepanov)

Pull request description:

  It was noted offline:
  > I don’t really see why targets, which have dependencies, should, rather than adding those dependencies, instead rely on running the right commands in the right order. That seems like fragile design?

  This PR fixes this issue.

Top commit has no ACKs.

Tree-SHA512: 072af89eeb13524eb9172e84baf5ae8008a74ae1ca5a972e31a1fdef7f6a8b83a355f3cdc9753008b7433d20e477b751d831296768d7207d1f84fb6548471507
  • Loading branch information
hebasto committed Aug 16, 2024
2 parents 8f4e5b0 + 943b0ca commit 950af8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmake/module/Maintenance.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ function(add_maintenance_targets)

foreach(target IN ITEMS bitcoind bitcoin-qt bitcoin-cli bitcoin-tx bitcoin-util bitcoin-wallet test_bitcoin bench_bitcoin)
if(TARGET ${target})
# Not using the TARGET_FILE generator expression because it creates excessive
# target-level dependencies in the following custom targets.
list(APPEND executables $<TARGET_FILE_DIR:${target}>/$<TARGET_FILE_NAME:${target}>)
list(APPEND executables $<TARGET_FILE:${target}>)
endif()
endforeach()

Expand Down

0 comments on commit 950af8d

Please sign in to comment.