vcpkg/ports/wil/portfile.cmake

27 lines
800 B
CMake
Raw Normal View History

#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/wil
REF d0849dca2c466bdce38a32a7e4265b193b8fb0f9
SHA512 9dd4eeae55c04f97da63e0b63f7e66b550726e547f52906a10ab7c92fa4b97ff000e170ac23f9eac846a04112764b86785abb96de82557672665742a8b4ba29c
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DWIL_BUILD_TESTS=OFF
-DWIL_BUILD_PACKAGING=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/WIL)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Install natvis files
file(INSTALL "${SOURCE_PATH}/natvis/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/natvis")
# Install copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")