2016-12-28 06:18:23 +08:00
|
|
|
#header-only library
|
2017-05-24 06:39:36 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO g-truc/gli
|
2021-07-09 01:51:05 +08:00
|
|
|
REF 779b99ac6656e4d30c3b24e96e0136a59649a869
|
|
|
|
SHA512 6e7ab46b7943cb185c8c1f6e45b765f5463e03628973043a0e8b866458ccceb5249f69a2a77b5e69c73f3ace85af96c7b9b2137685ceb6d0fcb67e491a49be69
|
2017-05-24 06:39:36 +08:00
|
|
|
HEAD_REF master
|
2020-06-02 07:02:26 +08:00
|
|
|
PATCHES
|
|
|
|
disable-test.patch
|
2016-12-24 02:49:55 +08:00
|
|
|
)
|
|
|
|
|
2020-06-02 07:02:26 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2021-07-09 01:51:05 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gli)
|
2020-06-02 07:02:26 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/gli/CMakeLists.txt)
|
|
|
|
|
2016-12-24 02:49:55 +08:00
|
|
|
# Put the license file where vcpkg expects it
|
2017-05-24 06:39:36 +08:00
|
|
|
# manual.md contains the "licenses" section for the project
|
2020-06-02 07:02:26 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/manual.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|