vcpkg/ports/ois/portfile.cmake
chausner 79a943954d
[ois] Update to 1.5.1 (#21244)
* Update ois to 1.5.1

* Update CI baseline

* Fix typo

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Add "supports", remove entries from CI baseline

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2021-11-08 20:43:34 -08:00

27 lines
818 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wgois/OIS
REF v1.5.1
SHA512 20598aef999a70900cb7f75ffaf62059acf8e811822971cb21986b5d25d28dacb79e4b4cf4770c70e00d3c55cdd01ef3e68a77c2dd148677784fc4df38891340
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
# Include files should not be duplicated into the /debug/include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)