2020-04-18 05:00:35 +08:00
|
|
|
#header-only library with an install target
|
2017-05-04 02:25:35 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/GSL
|
2020-04-18 04:59:41 +08:00
|
|
|
REF b43855631afdb9f7ccd4b56ed05330a8e3817af1
|
|
|
|
SHA512 fe770217f9ced6fbacfb57ab2f57a33ff2c150cdbadb1e4fc4f0bfe39e98b3940f9f22786a5d30ff7967063caadf7c3cf884a398a7eb6b1d0e219577782fc776
|
2017-05-04 02:25:35 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-04-18 05:00:35 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DGSL_TEST=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(
|
|
|
|
CONFIG_PATH share/Microsoft.GSL/cmake
|
|
|
|
TARGET_PATH share/Microsoft.GSL
|
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2017-05-04 02:25:35 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2020-04-18 05:00:35 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|