Skip to content

Commit

Permalink
[ms-gsl] Update to v3.0.0 (#10831)
Browse files Browse the repository at this point in the history
* [ms-gsl] Update to 2019-04-13

* [ms-gsl] Update to v3.0.0

* [ms-gsl] apply suggested changes
  • Loading branch information
Farwaykorse committed Apr 17, 2020
1 parent f143ecf commit acff7d4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions ports/ms-gsl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#header-only library
#header-only library with an install target
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/GSL
Expand All @@ -7,7 +7,21 @@ vcpkg_from_github(
HEAD_REF master
)

file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
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")

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ms-gsl RENAME copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

0 comments on commit acff7d4

Please sign in to comment.