From: Jean-Paul Pelteret Date: Fri, 15 Mar 2019 10:03:46 +0000 (+0100) Subject: Fix SymEngine CMake module. X-Git-Tag: v9.1.0-rc1~271^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=234b815f4df093d4210a8b2efef6732493b7aa0e;p=dealii.git Fix SymEngine CMake module. --- 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