File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.19 ...4.3 )
1+ cmake_minimum_required (VERSION 3.21 ...4.3 )
22
33if (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
1010include (GNUInstallDirs )
11- include (cmake/GitSubmodule.cmake )
11+ include (FetchContent )
1212
1313if (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 )
1515endif ()
1616
1717message (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
2223set (CMAKE_C_STANDARD 99)
2324
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments