2018-08-03 10:47:57 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libcheck/check
|
2020-02-11 08:08:57 +08:00
|
|
|
REF d86594e5b29d50ddbd6276ab2d2cf5c278f7656c # 0.14.0
|
|
|
|
SHA512 db9c27fdce5c238b6327dd43dec3aa0321e2a1af49d17218db8a7fb96e8f07750cbc51cf8a07504700d878d97334c1703b165a17da1c070d43aa2c15a67e977d
|
2018-08-03 10:47:57 +08:00
|
|
|
HEAD_REF master
|
2020-01-07 03:10:10 +08:00
|
|
|
PATCHES fix-lib-path.patch
|
2018-08-03 10:47:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-12-21 04:08:43 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/check)
|
2019-10-25 06:49:23 +08:00
|
|
|
|
2020-01-07 03:10:10 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-10-25 06:49:23 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
2018-08-03 10:47:57 +08:00
|
|
|
|
|
|
|
# cleanup
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-01-07 03:10:10 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING.LESSER DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|