2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-06-17 06:45:10 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO graeme-hill/crossguid
|
2021-10-27 14:03:22 +08:00
|
|
|
REF ca1bf4b810e2d188d04cb6286f957008ee1b7681 #2021-10-22
|
|
|
|
SHA512 f0a80d8e99b10473bcfdfde3d1c5fd7b766959819f0d1c0595ac84ce46db9007a5fbfde9a55aca60530c46cb7f8ef4c7e472c6191559ded92f868589c141ccaf
|
2018-06-17 06:45:10 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-27 14:03:22 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-06-17 06:45:10 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCROSSGUID_TESTS:BOOL=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-27 14:03:22 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-06-17 06:45:10 +08:00
|
|
|
|
2021-10-27 14:03:22 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/crossguid/cmake)
|
2018-06-17 06:45:10 +08:00
|
|
|
|
2021-11-30 09:03:24 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-10-27 14:03:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-06-17 06:45:10 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-10-27 14:03:22 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|