orcaslicer/deps/OCCT
Joseph Palazzolo b82d13a5a9
Fix OCCT and OpenCV patching during build (#8465)
* Fix OCCT and OpenCV patching during build

The inclusion of the `--directory` flag here isn't necessary because of
how `PATCH_COMMAND` applies patches. In fact this causes issues when
trying to build from an archive, `--directory` seems to imply `--index`
and thus this patch only succeeds if you're inside an initialized git
repo. If you simply use the archive without a git repo the build fails
at the patch step.

* Alter patch command based on git repo status

`git apply` has different behavior when inside a git repo vs not. If
we're in a git repo we need to fully quality the path for these patches,
otherwise we can omit the directory flag.

---------

Co-authored-by: Joe Palazzolo <joe@joepalazzolo.net>
2025-02-21 12:50:17 +08:00
..
0001-OCCT-fix.patch Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
OCCT.cmake Fix OCCT and OpenCV patching during build (#8465) 2025-02-21 12:50:17 +08:00