diff options
Diffstat (limited to 'vcpkg/ports/ms-gsl')
| -rw-r--r-- | vcpkg/ports/ms-gsl/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/ms-gsl/vcpkg.json | 17 |
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/ms-gsl/portfile.cmake b/vcpkg/ports/ms-gsl/portfile.cmake new file mode 100644 index 0000000..23d78f2 --- /dev/null +++ b/vcpkg/ports/ms-gsl/portfile.cmake @@ -0,0 +1,25 @@ +#header-only library with an install target +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Microsoft/GSL + REF v${VERSION} + SHA512 f325c70fb02ead99c5be333baa0793573dd091fe111b20ff13b2d524b71f1357bbc365a66684a8c791796095284cc6a968fc3c7284a0b3c0646a38a61e46792c + 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") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/ms-gsl/vcpkg.json b/vcpkg/ports/ms-gsl/vcpkg.json new file mode 100644 index 0000000..49557bd --- /dev/null +++ b/vcpkg/ports/ms-gsl/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "ms-gsl", + "version": "4.2.0", + "description": "Microsoft implementation of the Guidelines Support Library", + "homepage": "https://github.com/Microsoft/GSL", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |