Skip to content

Commit

Permalink
cmake: fix cleaning an external project source tree (#2019)
Browse files Browse the repository at this point in the history
Cleaning directories need to be done in reverse order.
  • Loading branch information
benoit-pierre authored Jan 12, 2025
1 parent 152d4a7 commit c5e24c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdparty/cmake_modules/koenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ clean_tree() { (
shift 2
# shellcheck disable=SC2030
export LANG=C
killlist="$(list_tree "${tree}" | comm -13 "${srclist}" -)"
killlist="$(list_tree "${tree}" | comm -13 "${srclist}" - | tac)"
[ -n "${killlist}" ] || return 0
# Remove files.
sed -n '/\/$/!p' <<EOF | xargs --delimiter='\n' --no-run-if-empty rm -v || return 1
Expand Down

0 comments on commit c5e24c9

Please sign in to comment.