Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Jul 23, 2024

When loading a package configuration file, find_package defines variables to provide information about the call arguments. In particular, CMAKE_FIND_PACKAGE_NAME represents the package name.

This PR uses this variable instead of a hardcoded name, making the use case suggested in #98 (comment) workable:

find_package(Libmultiprocess COMPONENTS Lib)
find_package(LibmultiprocessNative COMPONENTS Bin
  NAMES Libmultiprocess
)

When loading a package configuration file, `find_package` defines
variables to provide information about the call arguments. In
particular, `CMAKE_FIND_PACKAGE_NAME` represents the package name.

This change uses this variable instead of a hardcoded name.
hebasto added a commit to hebasto/bitcoin that referenced this pull request Jul 23, 2024
@hebasto
Copy link
Member Author

hebasto commented Jul 23, 2024

@ryanofsky

FWIW, the recent push to bitcoin/bitcoin#29790 uses this PR implementation.

Copy link
Collaborator

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK c373a94

Thanks for the fix!

@ryanofsky ryanofsky merged commit e454072 into bitcoin-core:master Jul 23, 2024
@hebasto hebasto deleted the 240723-package-name branch July 23, 2024 18:36
fanquake added a commit to bitcoin/bitcoin that referenced this pull request Jul 24, 2024
ec0e805 depends: Bump `libmultiprocess` for CMake fixes (Hennadii Stepanov)

Pull request description:

  This PR amends #30490 and bumps the upstream branch, which now includes a required CMake [fix](bitcoin-core/libmultiprocess#103).

  Addresses #30490 (comment).

  The CI logs are available in #29790 where the recent [push](https://github.com/hebasto/bitcoin/tree/pr29790-0723.2.mp) uses this PR implementation.

ACKs for top commit:
  ryanofsky:
    Code review ACK ec0e805
  theuni:
    utACK ec0e805.

Tree-SHA512: e300a27bcab80a63a518719e9af8e10a938294fc07289cadbf4a7744627c10b0e9541a36971d08b65152f3f7d0eb434e427274d9c9d9f0bdd216afd914027a0f
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 3, 2024
ec0e805 depends: Bump `libmultiprocess` for CMake fixes (Hennadii Stepanov)

Pull request description:

  This PR amends bitcoin#30490 and bumps the upstream branch, which now includes a required CMake [fix](bitcoin-core/libmultiprocess#103).

  Addresses bitcoin#30490 (comment).

  The CI logs are available in bitcoin#29790 where the recent [push](https://github.com/hebasto/bitcoin/tree/pr29790-0723.2.mp) uses this PR implementation.

ACKs for top commit:
  ryanofsky:
    Code review ACK ec0e805
  theuni:
    utACK ec0e805.

Tree-SHA512: e300a27bcab80a63a518719e9af8e10a938294fc07289cadbf4a7744627c10b0e9541a36971d08b65152f3f7d0eb434e427274d9c9d9f0bdd216afd914027a0f
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 3, 2024
ec0e805 depends: Bump `libmultiprocess` for CMake fixes (Hennadii Stepanov)

Pull request description:

  This PR amends bitcoin#30490 and bumps the upstream branch, which now includes a required CMake [fix](bitcoin-core/libmultiprocess#103).

  Addresses bitcoin#30490 (comment).

  The CI logs are available in bitcoin#29790 where the recent [push](https://github.com/hebasto/bitcoin/tree/pr29790-0723.2.mp) uses this PR implementation.

ACKs for top commit:
  ryanofsky:
    Code review ACK ec0e805
  theuni:
    utACK ec0e805.

Tree-SHA512: e300a27bcab80a63a518719e9af8e10a938294fc07289cadbf4a7744627c10b0e9541a36971d08b65152f3f7d0eb434e427274d9c9d9f0bdd216afd914027a0f
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jul 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants