Skip to content

Commit 1575bce

Browse files
committed
Use new macro for fetching dep
1 parent 9c9c13b commit 1575bce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ find_package(Sofa.Component.LinearSolver.Direct REQUIRED)
2121
find_package(metis 5.1.0 EXACT QUIET)
2222
if(NOT metis_FOUND AND SOFA_ALLOW_FETCH_DEPENDENCIES)
2323
message("Sofa.Metis: DEPENDENCY metis NOT FOUND. SOFA_ALLOW_FETCH_DEPENDENCIES is ON, fetching metis...")
24-
include(FetchContent)
25-
FetchContent_Declare(metis
24+
sofa_fetch_dependency(metis
2625
GIT_REPOSITORY https://github.com/sofa-framework/METIS
2726
GIT_TAG v5.1.0-ModernInstall
2827
)
29-
FetchContent_MakeAvailable(metis)
3028
elseif (NOT metis_FOUND)
3129
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.")
3230
endif()

0 commit comments

Comments
 (0)