From: Terry Cojean Date: Fri, 11 Nov 2022 12:04:41 +0000 (+0100) Subject: Fix FindGINKGO.cmake for Ginkgo 1.5.0 X-Git-Tag: v9.5.0-rc1~859^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8be7c428f20f85ae237efed85f90bb9f0c61e7e;p=dealii.git Fix FindGINKGO.cmake for Ginkgo 1.5.0 --- diff --git a/cmake/modules/FindGINKGO.cmake b/cmake/modules/FindGINKGO.cmake index f22e474dd6..4221c5c421 100644 --- a/cmake/modules/FindGINKGO.cmake +++ b/cmake/modules/FindGINKGO.cmake @@ -51,17 +51,19 @@ unset(GINKGO_CXX_COMPILER) # SET(_libraries "") FOREACH(_library ginkgo ${GINKGO_INTERFACE_LINK_LIBRARIES}) - LIST(APPEND _libraries GINKGO_LIBRARY_${_library}) - DEAL_II_FIND_LIBRARY(GINKGO_LIBRARY_${_library} - NAMES ${_library} - HINTS ${GINKGO_INSTALL_LIBRARY_DIR} - NO_DEFAULT_PATH - NO_CMAKE_ENVIRONMENT_PATH - NO_CMAKE_PATH - NO_SYSTEM_ENVIRONMENT_PATH - NO_CMAKE_SYSTEM_PATH - NO_CMAKE_FIND_ROOT_PATH - ) + IF(_library MATCHES "ginkgo.*") + LIST(APPEND _libraries GINKGO_LIBRARY_${_library}) + DEAL_II_FIND_LIBRARY(GINKGO_LIBRARY_${_library} + NAMES ${_library} + HINTS ${GINKGO_INSTALL_LIBRARY_DIR} + NO_DEFAULT_PATH + NO_CMAKE_ENVIRONMENT_PATH + NO_CMAKE_PATH + NO_SYSTEM_ENVIRONMENT_PATH + NO_CMAKE_SYSTEM_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + ENDIF() ENDFOREACH() #