Skip to content

Commit 63d0baa

Browse files
bakpaulLunNovaalxbilger
authored
[CI] Update metis version (#5732)
* [SofaMatrix] Allow metis >= 5.2.1 Fixes #5697 metis 5.1.0 is known to work, versions newer than 5.1 and older than 5.2.1 are broken. A fix was applied in a commit[1] that was first included in 5.2.1. [1]: KarypisLab/METIS@36262ad * Change METIS version * Project name is not Sofa.Metis --------- Co-authored-by: Luna Nova <git@lunnova.dev> Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
1 parent 98ae907 commit 63d0baa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

applications/plugins/SofaMatrix/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ sofa_find_package(Sofa.Component.Constraint.Lagrangian.Solver REQUIRED)
77
sofa_find_package(Sofa.Component.LinearSolver.Direct REQUIRED)
88
sofa_find_package(Eigen3 REQUIRED)
99

10-
find_package(metis 5.1.0 EXACT QUIET)
10+
# Try to find metis with:
11+
# - >= 5.2.1
12+
# - EXACT 5.1.0
13+
# Versions newer than 5.1 and older than 5.2.1 are known to be broken
14+
find_package(metis 5.2.1 QUIET)
1115
if(NOT metis_FOUND AND SOFA_ALLOW_FETCH_DEPENDENCIES)
1216
message("${PROJECT_NAME}: DEPENDENCY metis NOT FOUND. SOFA_ALLOW_FETCH_DEPENDENCIES is ON, fetching metis...")
1317
sofa_fetch_dependency(metis
1418
GIT_REPOSITORY https://github.com/sofa-framework/METIS
15-
GIT_TAG v5.1.0-ModernInstall
19+
GIT_TAG v5.2.1-ModernInstall
1620
)
1721
elseif (NOT metis_FOUND)
18-
message(FATAL_ERROR "Sofa.Metis: DEPENDENCY metis NOT FOUND. SOFA_ALLOW_FETCH_DEPENDENCIES is OFF and thus cannot be fetched. Install metis (version=5.1.0), or enable SOFA_ALLOW_FETCH_DEPENDENCIES to fix this issue.")
22+
message(FATAL_ERROR "${PROJECT_NAME}: DEPENDENCY metis NOT FOUND. SOFA_ALLOW_FETCH_DEPENDENCIES is OFF and thus cannot be fetched. Install metis (version=5.2.1), or enable SOFA_ALLOW_FETCH_DEPENDENCIES to fix this issue.")
1923
endif()
2024

2125

0 commit comments

Comments
 (0)