mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 13:38:59 +08:00
c9e786d81a
* Bulk remove vcpkg_fail_port_install calls. Interesting ones have been split out into separate reviews, where "interesting" means "anything more than just deleting the call to vcpkg_fail_port_install", In support of https://github.com/microsoft/vcpkg/pull/21502 * Update version database. * Revert google benchmark changes already submitted as https://github.com/microsoft/vcpkg/pull/22728 * Repair version database.
34 lines
952 B
CMake
34 lines
952 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO CopernicaMarketingSoftware/AMQP-CPP
|
|
REF b891cc37a6ff63fcff59a112de281f5964344c91 #v4.3.15
|
|
SHA512 5c55285e2445752669bfe51a276c3c9cb294eeae74e05124fa7427737e43419493b8a8e199bedba9ab7fba5822a8da530ca442afdbe45d12c2c0c54f9fd59a0c
|
|
HEAD_REF master
|
|
PATCHES
|
|
find-openssl.patch
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
set(LINUX_TCP ON)
|
|
else()
|
|
set(LINUX_TCP OFF)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DAMQP-CPP_BUILD_SHARED=OFF
|
|
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_fixup_pkgconfig()
|