Skip to content

Commit

Permalink
SuiteSparse: update to 1.8.0 / 5.4.0-2 (#702)
Browse files Browse the repository at this point in the history
Use the new `METIS_IDX_TYPEWIDTH=32` option for compatibility with
ceres-solver 2.2.0.
  • Loading branch information
NeroBurner authored Oct 25, 2023
1 parent aa1e12c commit 669859f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ hunter_default_version(SimpleSignal VERSION 0.0.0-79c3f68-p1)
hunter_default_version(Snappy VERSION 1.1.7)
hunter_default_version(Sober VERSION 0.1.3)
hunter_default_version(Sqlpp11 VERSION 0.57-p0)
hunter_default_version(SuiteSparse VERSION 5.4.0-1)
hunter_default_version(SuiteSparse VERSION 5.4.0-2)
hunter_default_version(TCLAP VERSION 1.2.2-p1)
hunter_default_version(TIFF VERSION 4.0.2-p5)
hunter_default_version(Tesseract VERSION 3.05.01-hunter-3)
Expand Down
14 changes: 14 additions & 0 deletions cmake/projects/SuiteSparse/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ hunter_add_version(
8d5f788248a8ca3558855afc556d7be4f7659c40
)

## suitesparse-metis-for-windows version is 1.8.0
## suitesparse library version is 5.4.0
hunter_add_version(
PACKAGE_NAME
SuiteSparse
VERSION
"5.4.0-2"
URL
"https://github.com/jlblancoc/suitesparse-metis-for-windows/archive/refs/tags/v1.8.0.tar.gz"
SHA1
c85cc6149dc44e7d351b5549c6e23a53ff94bc23
)

if(HUNTER_SuiteSparse_VERSION VERSION_LESS 5.4.0)
set(_SuiteSparse_BUILD_METIS NO)
set(_SuiteSparse_WITH_OPENBLAS NO)
Expand All @@ -88,6 +101,7 @@ hunter_cmake_args(
CMAKE_ARGS
BUILD_METIS=${_SuiteSparse_BUILD_METIS}
WITH_OPENBLAS=${_SuiteSparse_WITH_OPENBLAS}
METIS_IDXTYPEWIDTH=32 # since 5.4.0-2, needed for compatibility with ceres-solver 2.2.0
HUNTER_INSTALL_LICENSE_FILES=LICENSE.md
)

Expand Down

0 comments on commit 669859f

Please sign in to comment.