]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix FindGINKGO.cmake for Ginkgo 1.5.0
authorTerry Cojean <terry.cojean@kit.edu>
Fri, 11 Nov 2022 12:04:41 +0000 (13:04 +0100)
committerTerry Cojean <terry.cojean@kit.edu>
Fri, 11 Nov 2022 12:04:41 +0000 (13:04 +0100)
cmake/modules/FindGINKGO.cmake

index f22e474dd6675e327cef07098239da2674bc00d4..4221c5c4214806731ed85cca2c192dac92ae1dcf 100644 (file)
@@ -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()
 
 #

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.