mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 04:19:01 +08:00
41d944f701
* [getdns/flint] Update to the latest version * [getdns/flint] Update to the latest version * [flint] Add unsupported on uwp * Update version files * [flint] Handle dllimport macro in header files * [arb] Update to 2.21.0 * [arb] Update to 2.2.1 and use upstream CMakeLists.txt * [arb] App patch * Update versions/a-/arb.json
27 lines
810 B
CMake
27 lines
810 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO fredrik-johansson/arb
|
|
REF e3a633dcc1adafeb7ca9648669f2b1fa2f433ee1 # 2.21.1
|
|
SHA512 af864ea4f849d12dbaadec8cda7e6b1a7d349b7aa776966ec7f61ad7a5186dc3f280512218bcff28901e2d55d6c976525746e6de13925a9942ed947ac2253af6
|
|
HEAD_REF master
|
|
PATCHES fix-build-error.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" MSVC_USE_MT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DMSVC_USE_MT=${MSVC_USE_MT}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Remove duplicate headers
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |