Skip to content

Commit d8e3afc

Browse files
committed
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.
1 parent 33adc75 commit d8e3afc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

depends/toolchain.cmake.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ endif()
168168

169169
if("@multiprocess@" STREQUAL "1")
170170
set(WITH_MULTIPROCESS ON CACHE BOOL "")
171-
set(LibmultiprocessNative_DIR "${CMAKE_FIND_ROOT_PATH}/native/lib/cmake/Libmultiprocess" CACHE PATH "")
171+
set(Libmultiprocess_ROOT "${CMAKE_CURRENT_LIST_DIR}" CACHE PATH "")
172+
set(LibmultiprocessNative_ROOT "${CMAKE_CURRENT_LIST_DIR}/native" CACHE PATH "")
172173
else()
173174
set(WITH_MULTIPROCESS OFF CACHE BOOL "")
174175
endif()

0 commit comments

Comments
 (0)