From d8e3afc3352a2742e9da1f777e026d1f051042ac Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:58:49 +0100 Subject: [PATCH] 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. --- depends/toolchain.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depends/toolchain.cmake.in b/depends/toolchain.cmake.in index c733c81edf7..d805c1c4f9d 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()