[scotch] Add ptscotch support (#42465)

This commit is contained in:
Mengna-Li 2024-12-04 00:27:59 +00:00 committed by GitHub
parent a02df3dc73
commit ca9f57ba4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 4 deletions

View File

@ -25,10 +25,14 @@ if(VCPKG_TARGET_IS_WINDOWS)
string(APPEND VCPKG_CXX_FLAGS " -DGRAPHMATCHNOTHREAD") string(APPEND VCPKG_CXX_FLAGS " -DGRAPHMATCHNOTHREAD")
endif() endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
ptscotch BUILD_PTSCOTCH
)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}" SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS ${FEATURE_OPTIONS}
-DBUILD_PTSCOTCH=OFF # Requires MPI
-DBUILD_LIBESMUMPS=OFF -DBUILD_LIBESMUMPS=OFF
-DBUILD_LIBSCOTCHMETIS=OFF -DBUILD_LIBSCOTCHMETIS=OFF
-DTHREADS=ON -DTHREADS=ON
@ -45,6 +49,10 @@ vcpkg_copy_tools(TOOL_NAMES
AUTO_CLEAN AUTO_CLEAN
) )
if ("ptscotch" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES dggath dgmap dgord dgscat dgtst AUTO_CLEAN)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/CeCILL-C_V1-en.txt") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/CeCILL-C_V1-en.txt")

View File

@ -1,6 +1,7 @@
{ {
"name": "scotch", "name": "scotch",
"version": "7.0.5", "version": "7.0.5",
"port-version": 1,
"description": "Scotch: a software package for graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering", "description": "Scotch: a software package for graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering",
"homepage": "https://gitlab.inria.fr/scotch/scotch", "homepage": "https://gitlab.inria.fr/scotch/scotch",
"license": null, "license": null,
@ -18,5 +19,13 @@
"host": true "host": true
}, },
"zlib" "zlib"
],
"features": {
"ptscotch": {
"description": "Build PT-Scotch",
"dependencies": [
"mpi"
] ]
} }
}
}

View File

@ -8174,7 +8174,7 @@
}, },
"scotch": { "scotch": {
"baseline": "7.0.5", "baseline": "7.0.5",
"port-version": 0 "port-version": 1
}, },
"scottt-debugbreak": { "scottt-debugbreak": {
"baseline": "1.0", "baseline": "1.0",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "ac6bd42f55d0f52fc7dd0ab144ea4c058e663b92",
"version": "7.0.5",
"port-version": 1
},
{ {
"git-tree": "6894afdfdbdbe1e142bb42d4d0894ecc37bca0ab", "git-tree": "6894afdfdbdbe1e142bb42d4d0894ecc37bca0ab",
"version": "7.0.5", "version": "7.0.5",