diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-03-11 14:35:55 -0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-03-11 14:38:45 -0800 |
commit | dd567b32c6a831801869ee36d4e932044180f8d1 (patch) | |
tree | 1f9f398f99994260cd53223053cef42a8d235cde /science | |
parent | net/wireshark: Restore ANDROIDDUMP OPTION (diff) |
science/paraview: Fix build after recent upgrade of math/exprtk
FindExprTk.cmake parses the header file exprtk.h to find version,
but the type of this variable changed since exprtk-0.0.2
Reported by: thierry@
Diffstat (limited to 'science')
-rw-r--r-- | science/paraview/files/patch-VTK_CMake_FindExprTk.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/science/paraview/files/patch-VTK_CMake_FindExprTk.cmake b/science/paraview/files/patch-VTK_CMake_FindExprTk.cmake new file mode 100644 index 000000000000..215a8fb90f6f --- /dev/null +++ b/science/paraview/files/patch-VTK_CMake_FindExprTk.cmake @@ -0,0 +1,15 @@ +- workaround for https://gitlab.kitware.com/paraview/paraview/-/issues/21817 + +--- VTK/CMake/FindExprTk.cmake.orig 2023-03-11 22:27:31 UTC ++++ VTK/CMake/FindExprTk.cmake +@@ -21,8 +21,8 @@ mark_as_advanced(ExprTk_INCLUDE_DIR) + + if (ExprTk_INCLUDE_DIR) + file(STRINGS "${ExprTk_INCLUDE_DIR}/exprtk.hpp" _exprtk_version_header +- REGEX "static const char\\* version") +- string(REGEX MATCH "static const char\\* version = \"([0-9.]+)\"" _exprtk_version_match "${_exprtk_version_header}") ++ REGEX "static char_cptr *version") ++ string(REGEX MATCH "static char_cptr *version = \"([0-9.]+)\"" _exprtk_version_match "${_exprtk_version_header}") + set(ExprTk_VERSION "${CMAKE_MATCH_1}") + unset(_exprtk_version_header) + unset(_exprtk_version_match) |