From f6761c1ec4b950e88fe0077d518bbe1aebb95d89 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Wed, 30 Oct 2024 13:40:31 +0100 Subject: [PATCH] distcheck: Create a symlink to the .pixi directory --- distcheck.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distcheck.cmake b/distcheck.cmake index 114e9211e..5ab84d8ba 100644 --- a/distcheck.cmake +++ b/distcheck.cmake @@ -86,6 +86,8 @@ macro(DISTCHECK_SETUP) mkdir -p _inst && chmod u+rwx _build _inst && chmod a-w . && + # Link xpixi directory into new source dir to avoid issue when replacing path in CMakeCache.txt + if [ -d ${CMAKE_SOURCE_DIR}/.pixi ]; then ( ln -s ${CMAKE_SOURCE_DIR}/.pixi ${SRCDIR}/.pixi ) ; fi && cp ${CMAKE_BINARY_DIR}/CMakeCache.txt _build/ && # Change previous source dir to the source one ${SED} ${SED_I_OPTION} -e "'s|${CMAKE_SOURCE_DIR}|${SRCDIR}|g'" _build/CMakeCache.txt &&