cmake: Fix package configuration file #103

pull hebasto wants to merge 1 commits into bitcoin-core:master from hebasto:240723-package-name changing 1 files +8 −8
  1. hebasto commented at 11:51 AM on July 23, 2024: member

    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 https://github.com/chaincodelabs/libmultiprocess/pull/98#issuecomment-2243751206 workable:

    find_package(Libmultiprocess COMPONENTS Lib)
    find_package(LibmultiprocessNative COMPONENTS Bin
      NAMES Libmultiprocess
    )
    
  2. cmake: Fix package configuration file
    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.
    c373a94d5b
  3. hebasto referenced this in commit 55783a9165 on Jul 23, 2024
  4. hebasto commented at 3:27 PM on July 23, 2024: member

    @ryanofsky

    FWIW, the recent push to https://github.com/bitcoin/bitcoin/pull/29790 uses this PR implementation.

  5. ryanofsky approved
  6. ryanofsky commented at 5:34 PM on July 23, 2024: collaborator

    Code review ACK c373a94d5b4b3f9c3ee582d15db61d17525bb9bf

    Thanks for the fix!

  7. ryanofsky merged this on Jul 23, 2024
  8. ryanofsky closed this on Jul 23, 2024

  9. hebasto deleted the branch on Jul 23, 2024
  10. fanquake referenced this in commit 1518c086fd on Jul 24, 2024
  11. PastaPastaPasta referenced this in commit 50f31aee0c on Oct 3, 2024
  12. PastaPastaPasta referenced this in commit 7cdacdc1ad on Oct 3, 2024
  13. bitcoin-core locked this on Jul 23, 2025
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 19:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me