pineapple-src/externals/vcpkg/ports/ms-gsl/portfile.cmake

27 lines
722 B
CMake
Raw Normal View History

2022-07-22 21:01:36 -04:00
#header-only library with an install target
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/GSL
REF a3534567187d2edc428efd3f13466ff75fe5805c
SHA512 5bd6aad37fee3b56a2ee2fed10d6ef02fdcf37a1f40b3fb1bbec8146a573e235169b315405d010ab75175674ed82658c8202f40b128a849c5250b4a1b8b0a1b3
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DGSL_TEST=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME Microsoft.GSL
CONFIG_PATH share/cmake/Microsoft.GSL
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)