From 234b815f4df093d4210a8b2efef6732493b7aa0e Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Fri, 15 Mar 2019 11:03:46 +0100 Subject: [PATCH] Fix SymEngine CMake module. --- cmake/modules/FindSYMENGINE.cmake | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindSYMENGINE.cmake b/cmake/modules/FindSYMENGINE.cmake index 4b7468f9ec..b318dd5992 100644 --- a/cmake/modules/FindSYMENGINE.cmake +++ b/cmake/modules/FindSYMENGINE.cmake @@ -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 -- 2.39.5