mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 22:19:00 +08:00
7f3e714768
* Update WIL port * Running new command I previously didn't know about
24 lines
719 B
CMake
24 lines
719 B
CMake
#header-only library
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Microsoft/wil
|
|
REF 5a21cac10640f54b7ef886031f4d9ed427bef4c5
|
|
SHA512 b1a6703dd75eee66f81c54bb5c01bc9acc7354c113fd556afb2dd95361db7e9f94c9e958d9a0b897359084c9c08cb725bbe214fdaccf2e662c1ca4aa73c3345a
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DWIL_BUILD_TESTS=OFF
|
|
-DWIL_BUILD_PACKAGING=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/WIL)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |