From: Jean-Paul Pelteret Date: Mon, 18 Mar 2019 11:51:55 +0000 (+0100) Subject: Simplify setting of CMake SymEngine version variable X-Git-Tag: v9.1.0-rc1~271^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb26ab50ad1adba87b052fd65f315239f326324;p=dealii.git Simplify setting of CMake SymEngine version variable --- diff --git a/cmake/modules/FindSYMENGINE.cmake b/cmake/modules/FindSYMENGINE.cmake index b318dd5992..ad06245073 100644 --- a/cmake/modules/FindSYMENGINE.cmake +++ b/cmake/modules/FindSYMENGINE.cmake @@ -84,9 +84,8 @@ IF(EXISTS ${SYMENGINE_SETTINGS_H}) STRING(REGEX REPLACE "^.*SYMENGINE_PATCH_VERSION.*([0-9]+).*" "\\1" SYMENGINE_VERSION_PATCH "${SYMENGINE_VERSION_PATCH_STRING}" ) - SET(SYMENGINE_VERSION - "${SYMENGINE_VERSION_MAJOR}.${SYMENGINE_VERSION_MINOR}.${SYMENGINE_VERSION_PATCH}" - ) + + SET(SYMENGINE_VERSION ${SymEngine_VERSION}) ENDIF() #