-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sundials] Build for Julia v1.7 (#3353)
* [Sundials] Build for Julia v1.7 * [Sundials] Add patches to make Windows happy I have no clue how this could possibly have worked before without these patches.
- Loading branch information
Showing
3 changed files
with
48 additions
and
9 deletions.
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
13 changes: 13 additions & 0 deletions
13
S/Sundials/bundled@5/patches/Sundials_findklu_suffixes.patch
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,13 @@ | ||
--- a/config/FindKLU.cmake | ||
+++ b/config/FindKLU.cmake | ||
@@ -19,6 +19,10 @@ | ||
set(CMAKE_FIND_LIBRARY_PREFIXES lib ${CMAKE_FIND_LIBRARY_PREFIXES}) | ||
endif() | ||
|
||
+# Ensure on Windows we look for shared libraries `*.dll`, instead of just import | ||
+# libraries (we don't have those for suitesparseconfig). | ||
+set(CMAKE_FIND_LIBRARY_SUFFIXES ".$ENV{dlext}" ${CMAKE_FIND_LIBRARY_SUFFIXES}) | ||
+ | ||
### Find include dir | ||
find_path(temp_KLU_INCLUDE_DIR klu.h ${KLU_INCLUDE_DIR}) | ||
if (temp_KLU_INCLUDE_DIR) |
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,19 @@ | ||
From 887af4374af2271db9310d31eaa9b5aeff49e829 Mon Sep 17 00:00:00 2001 | ||
From: "Balos, Cody Joe" <balos1@llnl.gov> | ||
Date: Thu, 21 May 2020 10:27:40 -0700 | ||
Subject: [PATCH] SUNDIALS Release v5.3.0 | ||
|
||
diff --git a/src/sunlinsol/lapackband/CMakeLists.txt b/src/sunlinsol/lapackband/CMakeLists.txt | ||
index 2bb5a4ef..b736ed09 100644 | ||
--- a/src/sunlinsol/lapackband/CMakeLists.txt | ||
+++ b/src/sunlinsol/lapackband/CMakeLists.txt | ||
@@ -74,6 +74,9 @@ if(BUILD_SHARED_LIBS) | ||
target_link_libraries(sundials_sunlinsollapackband_shared | ||
PUBLIC sundials_sunmatrixband_shared ${LAPACK_LIBRARIES}) | ||
|
||
+ target_compile_definitions(sundials_sunlinsollapackband_shared | ||
+ PUBLIC -DBUILD_SUNDIALS_LIBRARY) | ||
+ | ||
install(TARGETS sundials_sunlinsollapackband_shared | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
|