Skip to content

Commit 09163dd

Browse files
committed
METIS & GKlib via FetchContent
1 parent 9833c65 commit 09163dd

4 files changed

Lines changed: 5 additions & 77 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.19...4.3)
1+
cmake_minimum_required(VERSION 3.21...4.3)
22

33
if(NOT CMAKE_BUILD_TYPE AND NOT DEFINED ENV{CMAKE_BUILD_TYPE})
44
set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug or Release")
@@ -8,16 +8,17 @@ project(parmetis LANGUAGES C VERSION 1.0.0)
88

99
# --- need METIS first
1010
include(GNUInstallDirs)
11-
include(cmake/GitSubmodule.cmake)
11+
include(FetchContent)
1212

1313
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND parmetis_IS_TOP_LEVEL)
1414
set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/local" CACHE PATH "install prefix" FORCE)
1515
endif()
1616

1717
message(STATUS "${PROJECT_NAME} ${PROJECT_VERSION} CMake ${CMAKE_VERSION} install prefix ${CMAKE_INSTALL_PREFIX}")
1818

19-
git_submodule(${CMAKE_CURRENT_SOURCE_DIR}/METIS)
20-
add_subdirectory(METIS)
19+
set(metis_url "https://github.com/scivision/METIS/archive/777472ae3cd15a8e6d1e5b7d6c347d21947e3ab2.tar.gz")
20+
FetchContent_Declare(metis URL ${metis_url})
21+
FetchContent_MakeAvailable(metis)
2122

2223
set(CMAKE_C_STANDARD 99)
2324

METIS

Lines changed: 0 additions & 1 deletion
This file was deleted.

cmake/GitSubmodule.cmake

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)