aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-09-23 10:58:49 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-09-23 10:58:49 +0100
commitd8e3afc3352a2742e9da1f777e026d1f051042ac (patch)
treee408f4d775532d9d18c8924304e70b44d895bbe1 /depends
parent33adc7521cc8bb24b941d959022b084002ba7c60 (diff)
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.
Diffstat (limited to 'depends')
-rw-r--r--depends/toolchain.cmake.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/depends/toolchain.cmake.in b/depends/toolchain.cmake.in
index c733c81edf..d805c1c4f9 100644
--- a/depends/toolchain.cmake.in
+++ b/depends/toolchain.cmake.in
@@ -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()