From 4fb26ab50ad1adba87b052fd65f315239f326324 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Mon, 18 Mar 2019 12:51:55 +0100 Subject: [PATCH] Simplify setting of CMake SymEngine version variable --- cmake/modules/FindSYMENGINE.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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() # -- 2.39.5