mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 12:59:06 +08:00
adbcf84ce9
* [amqpcpp] update to 4.3.19 * update version * add license * update version * remove outdated comment * update version
35 lines
871 B
CMake
35 lines
871 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO CopernicaMarketingSoftware/AMQP-CPP
|
|
REF "v${VERSION}"
|
|
SHA512 6220d6cdd3114cf02f08f1d8599d1f6de94df204384f9da7db1c18f74732a5c23063cd50066b7d32906af0a968d600daf0d59f1649d9674fa67446197c6e4988
|
|
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(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|