build: specify cmake build dir for multiprocess depends build #24754

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:libmultiprocess_cmake_dir changing 2 files +2 −2
  1. fanquake commented at 9:25 AM on April 4, 2022: member

    When no build dir is specified, cmake will warn:

    Preprocessing libmultiprocess...
    Configuring libmultiprocess...
    CMake Warning:
      No source or binary directory provided.  Both will be assumed to be the
      same as the current working directory, but note that this warning will
      become a fatal error in future CMake releases.
    

    It's unclear if this will actually ever become an error, but it's also easy enough to just supply the directory, and save this maybe breaking in future.

  2. build: specify cmake build dir for multiprocess depends build
    When no build dir is specified, cmake will warn:
    ```bash
    Preprocessing libmultiprocess...
    Configuring libmultiprocess...
    CMake Warning:
      No source or binary directory provided.  Both will be assumed to be the
      same as the current working directory, but note that this warning will
      become a fatal error in future CMake releases.
    ```
    
    It's unclear if this will actually ever become an error, but it's also easy
    enough to just supply the directory, and save this maybe breaking in
    future.
    7c218dacd0
  3. fanquake added the label Build system on Apr 4, 2022
  4. fanquake requested review from ryanofsky on Apr 4, 2022
  5. in depends/packages/libmultiprocess.mk:9 in 7c218dacd0
       5 | @@ -6,7 +6,7 @@ $(package)_sha256_hash=$(native_$(package)_sha256_hash)
       6 |  $(package)_dependencies=native_$(package) capnp
       7 |  
       8 |  define $(package)_config_cmds
       9 | -  $($(package)_cmake)
      10 | +  $($(package)_cmake) .
    


    ryanofsky commented at 5:33 PM on April 4, 2022:

    In commit "build: specify cmake build dir for multiprocess depends build" (7c218dacd0e9602b8f755be42e96c49706f96305)

    Note: I guess an alternate implementation could include the . in the _cmake variable, but this implementation seems good and more explicit. _cmake variable is defined here currently: https://github.com/bitcoin/bitcoin/blob/47bac475f044da0d8cd2e1f39fd2894f90dd0bd9/depends/funcs.mk#L172-L186

  6. ryanofsky approved
  7. ryanofsky commented at 5:40 PM on April 4, 2022: member

    Code review ACK 7c218dacd0e9602b8f755be42e96c49706f96305. I guess the purpose of the warning is to encourage people not to build in the source directory, but reasons for encouraging this don't really apply to the depends build system, so it is appropriate to disable the warning.

  8. hebasto approved
  9. hebasto commented at 6:56 PM on April 4, 2022: member

    ACK 7c218dacd0e9602b8f755be42e96c49706f96305, tested on Ubuntu 22.04.

  10. fanquake merged this on Apr 5, 2022
  11. fanquake closed this on Apr 5, 2022

  12. fanquake deleted the branch on Apr 5, 2022
  13. sidhujag referenced this in commit 74cddc2e92 on Apr 5, 2022
  14. DrahtBot locked this on Apr 5, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:13 UTC

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