vcpkg/ports/libenvpp/portfile.cmake
Jia Yue Hua 3c36c791d2
[libenvpp] update to 1.4.0 (#36391)
* [libenvpp] update to 1.4.0

* [libenvpp] update to 1.4.0
2024-01-26 16:46:24 -08:00

31 lines
838 B
CMake

vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ph3at/libenvpp
REF v${VERSION}
SHA512 5e56404983770b6838d43311490cbd49ef68aad84868b3d9cb9dcb104d33e34eb3588d494bc120179c75c242a3bdc0c4e39c36f7fb732a37a843c1b79c22886f
HEAD_REF main
PATCHES
fix-dependencies.patch
fix-install.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLIBENVPP_EXAMPLES=OFF
-DLIBENVPP_TESTS=OFF
-DLIBENVPP_CHECKS=OFF
-DLIBENVPP_INSTALL=ON
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")