Skip to content

Commit

Permalink
depends: Fix build with MULTIPROCESS=1 in Guix environment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hebasto committed Sep 21, 2024
1 parent 38bc046 commit 953aa06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion depends/toolchain.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ endif()

if("@multiprocess@" STREQUAL "1")
set(WITH_MULTIPROCESS ON CACHE BOOL "")
set(LibmultiprocessNative_DIR "${CMAKE_CURRENT_LIST_DIR}/native/lib/cmake/Libmultiprocess" CACHE PATH "")
set(Libmultiprocess_ROOT "${CMAKE_FIND_ROOT_PATH}" CACHE PATH "")
set(LibmultiprocessNative_ROOT "${CMAKE_FIND_ROOT_PATH}/native" CACHE PATH "")
else()
set(WITH_MULTIPROCESS OFF CACHE BOOL "")
endif()

0 comments on commit 953aa06

Please sign in to comment.