vcpkg/ports/wil/portfile.cmake
Theodore Tsirpanis f7dc9c8f5e
[wil] Configure only in release mode. (#34686)
* [wil] Configure only in release mode.

* Update version database.
2023-10-24 09:20:24 -07:00

30 lines
872 B
CMake

#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/wil
REF v1.0.230824.2
SHA512 be9774b8d8ccc2df9fce4343aca87f721c90c8ef4a9d00ccf61a3182aafda7d98d4af96cf098ef5400a5234c1457fa745b40f9540e1f1c1cbf402181e484dcf8
HEAD_REF master
)
# WIL is header-only, so we don't need to build it in both modes
set(VCPKG_BUILD_TYPE release)
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")