mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 04:39:06 +08:00
63d08e949d
* Remove bogus arguments in the `vcpkg create` template. * [gklib] Add new port in support of metis and parmetis. New port checklist: * Review the code :) * Check the name against https://repology.org/ There are 2 packages, both of which seem to be the same thing * Check the name against Bing/Google. It's the first entry. * Check the source code for optional `find_package`s There are none. * Check that the versioning scheme and license match what upstream says They have none. * Check that the source code comes from the upstream project's authoritative source. We did. * Check that the generated usage is accurate. * Check that the reported license is accurate. We hope so. * [metis] Update source to github. Resolves https://github.com/microsoft/vcpkg/issues/25764 Competes with https://github.com/microsoft/vcpkg/pull/25953 * [parmetis] Update source to github. * Add licenses. * Fix GKlib case. * Fix metis install.
26 lines
919 B
CMake
26 lines
919 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KarypisLab/GKlib
|
|
REF b1cb3bd7f6bf4da641af901c8d455c0f858c816f
|
|
SHA512 e906c7af8b40ce1c4c4ea43cbfca3e3970e5595686333ac9ac80c6cbc558feb0e833f530f034161927030edac5272234c6ac9cad5287cb6edab0c0671ba3644c
|
|
PATCHES
|
|
build-fixes.patch
|
|
)
|
|
|
|
# Delete files that are workarounds for very old copies of msvc.
|
|
file(REMOVE "${SOURCE_PATH}/ms_inttypes.h" "${SOURCE_PATH}/ms_stdint.h")
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME GKlib)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" [=[
|
|
gklib provides CMake targets:
|
|
find_package(GKlib CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE GKlib)
|
|
]=])
|