]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify setting of CMake SymEngine version variable
authorJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 18 Mar 2019 11:51:55 +0000 (12:51 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 18 Mar 2019 11:51:55 +0000 (12:51 +0100)
cmake/modules/FindSYMENGINE.cmake

index b318dd5992fd3f113ae478687e3eb45d703f9489..ad0624507365982da332b403b93ecfe0e88b3a85 100644 (file)
@@ -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()
 
 #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.