2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2022-08-04 09:59:36 +08:00
|
|
|
vcpkg_from_github(
|
2019-01-17 07:50:46 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-08-04 09:59:36 +08:00
|
|
|
REPO KarypisLab/ParMETIS
|
|
|
|
REF 44fadbf58c71a74b39abb110a7691355d2a760ca
|
|
|
|
SHA512 d07e2ccb358948b728be3d282841ad42a8358908a4f1ab3342d4c3016e71a06c1b5966640a06e713f4c773365d7dba4f0c68795d615802f3af07194c0778f362
|
2017-01-11 19:04:38 +08:00
|
|
|
PATCHES
|
2022-08-04 09:59:36 +08:00
|
|
|
build-fixes.patch
|
2017-01-11 19:04:38 +08:00
|
|
|
)
|
|
|
|
|
2022-08-04 09:59:36 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-01-11 19:04:38 +08:00
|
|
|
OPTIONS
|
2022-08-04 09:59:36 +08:00
|
|
|
-DSHARED=OFF
|
2017-01-11 19:04:38 +08:00
|
|
|
)
|
|
|
|
|
2022-08-04 09:59:36 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-01-11 19:04:38 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-08-04 09:59:36 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" [=[
|
|
|
|
parmetis provides CMake targets:
|
|
|
|
find_package(parmetis CONFIG REQUIRED)
|
|
|
|
target_link_libraries(main PRIVATE parmetis)
|
|
|
|
]=])
|