2017-02-23 18:45:25 +05:00
|
|
|
set(METIS_SRC_DIR ${CMAKE_CURRENT_BINARY_DIR}/dependencies/src/project_metis)
|
|
|
|
set(METIS_DIR ${CMAKE_CURRENT_BINARY_DIR}/dependencies/metis)
|
|
|
|
|
|
|
|
ExternalProject_Add(project_metis
|
|
|
|
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/dependencies
|
2024-05-07 14:17:06 +05:00
|
|
|
URL https://bitbucket.org/petsc/pkg-metis/get/v5.1.0-p12.tar.gz
|
|
|
|
URL_MD5 6cd66f75f88dfa2cf043de011f85d8bc
|
2017-02-23 18:45:25 +05:00
|
|
|
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies
|
|
|
|
CMAKE_ARGS
|
|
|
|
-DGKLIB_PATH=${METIS_SRC_DIR}/GKlib
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${METIS_DIR}
|
2019-04-17 13:45:32 +05:00
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
2019-05-17 17:15:15 +05:00
|
|
|
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
2017-02-23 18:45:25 +05:00
|
|
|
UPDATE_COMMAND "" # Disable update
|
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
)
|
|
|
|
|
|
|
|
set_vars( NETGEN_CMAKE_ARGS METIS_DIR )
|
|
|
|
|
|
|
|
list(APPEND NETGEN_DEPENDENCIES project_metis)
|