Skip to content

Commit

Permalink
CMake: Fail if there is no analytical parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Dec 2, 2024
1 parent 8a8fcc7 commit 75ca8cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ if (USE_EXPRTK)
set (OPENTURNS_HAVE_ANALYTICAL_PARSER TRUE)
set (SYMBOLICPARSER_DEFAULT_BACKEND ExprTk)
endif ()
if (NOT OPENTURNS_HAVE_ANALYTICAL_PARSER)
message(FATAL_ERROR "Analytical parser required, please enable either USE_MUPARSER or USE_EXPRTK")
endif ()

if (USE_HMAT)
find_package (HMAT 1.7 CONFIG)
Expand Down

0 comments on commit 75ca8cf

Please sign in to comment.