diff --git a/cmake/setup_triangle.sh b/cmake/setup_triangle.sh index 9d0578d..677a11b 100644 --- a/cmake/setup_triangle.sh +++ b/cmake/setup_triangle.sh @@ -12,9 +12,15 @@ fi echo "Building Triangle..." -while read -r patch; do - patch -p1 < "debian/patches/$patch" -done < debian/patches/series +if [ -f is_patched ]; then + echo "Triangle already patched." +else + echo "Patching Triangle..." + while read -r patch; do + patch -p1 < "debian/patches/$patch" + done < debian/patches/series + touch is_patched +fi echo "Building Triangle..."