2019-05-09 03:40:09 +08:00
|
|
|
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/wil
|
2021-03-11 03:29:45 +08:00
|
|
|
REF 86353933d5fba0caf61503c8b09e10e182dccdfb
|
|
|
|
SHA512 07694a3754c179aa629b8e3e8fc2a5554779601925131bffef311dee937b03db0d1be891eaee364b7a265b7268f39ad356d8302c02b05acf4fa8c7b2d4d51629
|
2019-05-09 03:40:09 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-01-06 04:44:06 +08:00
|
|
|
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")
|
|
|
|
|
2021-03-11 03:29:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|