From 9999219cce474fd6c418fb25784e292f4861b697 Mon Sep 17 00:00:00 2001 From: Matthias Volk Date: Thu, 12 Dec 2024 12:27:35 +0100 Subject: [PATCH] Check if Eigen patch was already applied (Fixes #616) --- resources/3rdparty/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/3rdparty/CMakeLists.txt b/resources/3rdparty/CMakeLists.txt index 7210473cd..f95bd065f 100644 --- a/resources/3rdparty/CMakeLists.txt +++ b/resources/3rdparty/CMakeLists.txt @@ -57,7 +57,8 @@ ExternalProject_Add( GIT_TAG bae907b8f6078b1df290729eef946360315bd312 SOURCE_DIR ${STORM_3RDPARTY_INCLUDE_DIR}/StormEigen PREFIX ${STORM_3RDPARTY_BINARY_DIR}/StormEigen-3.4.1alpha - PATCH_COMMAND git apply ${STORM_3RDPARTY_SOURCE_DIR}/patches/eigen341alpha.patch + # First check whether patch was already applied (--reverse --check), other apply patch + PATCH_COMMAND git apply ${STORM_3RDPARTY_SOURCE_DIR}/patches/eigen341alpha.patch --reverse --check || git apply ${STORM_3RDPARTY_SOURCE_DIR}/patches/eigen341alpha.patch UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND ""