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
|
2024-10-23 14:01:18 +08:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 1db14bebab5f2bc0752214f9bf1b84a056b7d83b4a9d296663c43103387baee60373447f62c4e9bc0b8df06a7ce0571a4e2b4a31441c866894eee3ae258fdfc8
|
2022-02-02 06:53:10 +08:00
|
|
|
HEAD_REF main
|
2017-05-04 02:25:35 +08:00
|
|
|
)
|
|
|
|
|
2022-02-02 06:53:10 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-04-18 05:00:35 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DGSL_TEST=OFF
|
|
|
|
)
|
|
|
|
|
2022-02-02 06:53:10 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-04-18 05:00:35 +08:00
|
|
|
|
2022-02-02 06:53:10 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME Microsoft.GSL
|
2020-04-24 12:14:12 +08:00
|
|
|
CONFIG_PATH share/cmake/Microsoft.GSL
|
2020-04-18 05:00:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2017-05-04 02:25:35 +08:00
|
|
|
|
2024-10-23 14:01:18 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|