Skip to content

Commit

Permalink
science/paraview: Fix build after recent upgrade of math/exprtk
Browse files Browse the repository at this point in the history
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@
  • Loading branch information
yurivict committed Mar 11, 2023
1 parent ed01d80 commit dd567b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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)

0 comments on commit dd567b3

Please sign in to comment.