mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 06:49:02 +08:00
341d02562a
* [abseil] update to latest release (20230125.0) * Fix DLL support * Update version * I do not understand the warning about version-string, fixing it seems to make things worse * [etcd-cpp-apiv3] Abseil requires C++14 * Update a downstream port * I just cannot get these right, argh * Try to switch from version-string to version (again) * Regenerate versions * Improve etcd handling of C++ standard * Regenerate versions * Use target_link_libraries to get compilation flags * Update version files
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO etcd-cpp-apiv3/etcd-cpp-apiv3
|
|
REF 9e1e60af2ee99eafb4ea9b8d275870776b7d8507
|
|
SHA512 07e7922c96b0b9cb6502820d9dac96c60390e5d3c4d94e9eed7e847a3d1197e79dbfd4259cd1510ca02d669713a976bb027ba5decc2a44ca8e851109f2ef9c15
|
|
HEAD_REF v0.2.12
|
|
PATCHES
|
|
0001-do-not-hardcode-cxx-standard.patch
|
|
0002-use-target-link-libraries.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DBUILD_ETCD_TESTS=OFF
|
|
)
|
|
set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
|
|
set(VCPKG_POLICY_DLLS_WITHOUT_EXPORTS enabled)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/etcd-cpp-api)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/etcd-cpp-apiv3" RENAME copyright)
|
|
|
|
# Adding usage text
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|