forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sundials: use cmake target file of KLU
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Use CMake target installed by SuiteSparse if available. | ||
|
||
diff -urN sundials-6.7.0/cmake/tpl/FindKLU.cmake.orig sundials-6.7.0/cmake/tpl/FindKLU.cmake | ||
--- sundials-6.7.0/cmake/tpl/FindKLU.cmake.orig 2023-12-18 18:26:43.000000000 +0100 | ||
+++ sundials-6.7.0/cmake/tpl/FindKLU.cmake 2023-12-30 20:26:08.649091700 +0100 | ||
@@ -30,6 +30,14 @@ | ||
# KLU_LIBRARIES - all of the libraries needed for KLU | ||
# --------------------------------------------------------------- | ||
|
||
+find_package(KLU CONFIG) | ||
+ | ||
+if(TARGET SuiteSparse::KLU) | ||
+ set(KLU_FOUND ON) | ||
+ add_library(SUNDIALS::KLU ALIAS SuiteSparse::KLU) | ||
+ return() | ||
+endif() | ||
+ | ||
# Set library prefixes for Windows | ||
if(WIN32) | ||
set(CMAKE_FIND_LIBRARY_PREFIXES lib ${CMAKE_FIND_LIBRARY_PREFIXES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters