Skip to content

Commit 77f696e

Browse files
authored
ceres-solver: update to 2.2.0-p2 with SuiteSparse v7.5.1-1 support (#736)
Support the latest `SuiteSparse-metis-for-windows` `v7.5.1-1` release, which doesn't provide the `SuiteSparse::metis` target anymore, as Metis is now a private dependency of the SuiteSparse cholmod module. Also disable `EIGENMETIS` build option as it needs Metis.
1 parent 161dca0 commit 77f696e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

cmake/configs/default.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_L
225225
# - C++17 requirement: https://github.com/ceres-solver/ceres-solver/commit/1274743609bc59621adc9e311cdeeaad7eb65201
226226
hunter_default_version(ceres-solver VERSION 2.1.0-p1)
227227
else()
228-
hunter_default_version(ceres-solver VERSION 2.2.0-p1)
228+
hunter_default_version(ceres-solver VERSION 2.2.0-p2)
229229
endif()
230230
hunter_default_version(cgltf VERSION 1.10-f9a8804-p0)
231231
hunter_default_version(check_ci_tag VERSION 1.0.0)

cmake/projects/ceres-solver/hunter.cmake

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ hunter_add_version(
120120
e7640e7d3a12bb4b3b36a0a6206ad65108c65326
121121
)
122122

123+
hunter_add_version(
124+
PACKAGE_NAME
125+
ceres-solver
126+
VERSION
127+
"2.2.0-p2"
128+
URL
129+
"https://github.com/cpp-pm/ceres-solver/archive/refs/tags/v2.2.0-p2.tar.gz"
130+
SHA1
131+
1fe13c3b6188541b4b2d2b8c18119c0caf29e173
132+
)
133+
123134
hunter_cmake_args(ceres-solver CMAKE_ARGS
124135
# explicitly remove dependency on gflags (only needed for tests)
125136
GFLAGS=OFF
@@ -137,6 +148,8 @@ hunter_cmake_args(ceres-solver CMAKE_ARGS
137148
BUILD_TESTING=OFF
138149
# also don't build examples: when suitesparse is enabled the examples need Fortran libraries
139150
BUILD_EXAMPLES=OFF
151+
# since SuiteSparse-metis 7.5.1-1 no SuiteSparse::metis target is installed
152+
EIGENMETIS=OFF
140153
)
141154

142155
# Pick a download scheme

0 commit comments

Comments
 (0)