Skip to content

Commit

Permalink
cmake: fix external projects in source tree rebuilds
Browse files Browse the repository at this point in the history
Fix cleanup of build artifacts when the build create directories.
  • Loading branch information
benoit-pierre committed Oct 4, 2024
1 parent d55129f commit 2141119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirdparty/cmake_modules/koenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ clean_tree() { (
killlist="$(list_tree "${tree}" | comm -13 "${srclist}" -)"
[ -n "${killlist}" ] || return 0
# Remove files.
sed -n '/\\$/!p' <<EOF | xargs --delimiter='\n' --no-run-if-empty rm -v || return 1
sed -n '/\/$/!p' <<EOF | xargs --delimiter='\n' --no-run-if-empty rm -v || return 1
${killlist}
EOF
# Remove directories.
sed -n '/\\$/p' <<EOF | xargs --delimiter='\n' --no-run-if-empty rmdir -v || return 1
sed -n '/\/$/p' <<EOF | xargs --delimiter='\n' --no-run-if-empty rmdir -v || return 1
${killlist}
EOF
); }
Expand Down

0 comments on commit 2141119

Please sign in to comment.