FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
106 stars 22 forks source link

CMake FetchContent patch apply error on reconfigure on Windows #1180

Closed ptheywood closed 10 months ago

ptheywood commented 10 months ago

1168 added a fetch content patch to the rapidjson dependency to resolve a deprecation warning.

Patch commands are non-trivial, and my implementation which behaves well on linux does not behave well on windows on a reconfigure that re-triggers the patch command.

When git apply is triggered when it has previously been applied already, it will fail with a non-zero error code.

Under linux this can be fixed with || true, but this does not work under windows.