mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
depends: Fix build with MULTIPROCESS=1
in Guix environment
In the Guix environment, `${BASEPREFIX}/${HOST}/native/bin` is added to the `PATH` environment variable, causing CMake to search for package configurations in the `native` subdirectory first. Explicitly specifying the top-priority search prefixes for the `Libmultiprocess` and `LibmultiprocessNative` packages resolves the issue.
This commit is contained in:
parent
33adc7521c
commit
d8e3afc335
1 changed files with 2 additions and 1 deletions
|
@ -168,7 +168,8 @@ endif()
|
|||
|
||||
if("@multiprocess@" STREQUAL "1")
|
||||
set(WITH_MULTIPROCESS ON CACHE BOOL "")
|
||||
set(LibmultiprocessNative_DIR "${CMAKE_FIND_ROOT_PATH}/native/lib/cmake/Libmultiprocess" CACHE PATH "")
|
||||
set(Libmultiprocess_ROOT "${CMAKE_CURRENT_LIST_DIR}" CACHE PATH "")
|
||||
set(LibmultiprocessNative_ROOT "${CMAKE_CURRENT_LIST_DIR}/native" CACHE PATH "")
|
||||
else()
|
||||
set(WITH_MULTIPROCESS OFF CACHE BOOL "")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Reference in a new issue