From 0a9d9a7dca2e8ff967e0ed6ffa356ef323bb58fe Mon Sep 17 00:00:00 2001 From: Andrew Cochrane Date: Mon, 9 Oct 2023 18:00:28 -0600 Subject: [PATCH] Build patch to fix wierd problem where Abs isn't imported by common_math.py in externalproject libsurvive --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a032552..3ba3ae9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,7 @@ include(ExternalProject) externalproject_add(libsurvive GIT_REPOSITORY https://github.com/cntools/libsurvive.git GIT_TAG master + PATCH_COMMAND echo "sed -i 's/, tan$/, tan, Abs/' src/generated/common_math.py" \> patch && bash patch CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/libsurvive-install -DCMAKE_BUILD_TYPE=Release