Skip to content

Commit

Permalink
distcheck: Create a symlink to the .pixi directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 30, 2024
1 parent a846a4a commit f6761c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit f6761c1

Please sign in to comment.