]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix SymEngine CMake module.
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 15 Mar 2019 10:03:46 +0000 (11:03 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 15 Mar 2019 10:04:37 +0000 (11:04 +0100)
cmake/modules/FindSYMENGINE.cmake

index 4b7468f9eca83476320419dd46719c1ba4456880..b318dd5992fd3f113ae478687e3eb45d703f9489 100644 (file)
@@ -118,7 +118,19 @@ STRING(REGEX REPLACE
   )
 REMOVE_DUPLICATES(_symengine_include_dirs)
 
-SET(_symengine_libraries ${SYMENGINE_LIBRARIES})
+#
+# The SYMENGINE_LIBRARIES variable configured by SymEngine only lists the
+# libraries, but does not set their paths. So we configure this outselves.
+# 
+FOREACH(SYMENGINE_LIBRARY_NAME ${SYMENGINE_LIBRARIES})
+  DEAL_II_FIND_LIBRARY(SYMENGINE_LIBRARY
+    NAMES ${SYMENGINE_LIBRARY_NAME}
+    HINTS ${SYMENGINE_DIR}
+    PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
+  )
+
+  SET(_symengine_libraries ${_symengine_libraries} ${SYMENGINE_LIBRARY})
+ENDFOREACH()
 
 
 DEAL_II_PACKAGE_HANDLE(SYMENGINE

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.