mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
e3dde67a62
* [amqpcpp] update to 4.3.11 * update version * add vcpkg.json * update version * update amqpcpp.json * update version * format manifest * update version
35 lines
998 B
CMake
35 lines
998 B
CMake
vcpkg_fail_port_install(ON_TARGET "UWP")
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO CopernicaMarketingSoftware/AMQP-CPP
|
|
REF 9fa05100f43686f617722aaba7a500cd54b9804a #v4.3.11
|
|
SHA512 f4d311d3f430579deb0ff9d820d9c6160dce775622afe28731ed4e6abd6b827bf20afb5bdf52d246d0fb5afc469005cc34469f57063e197375b6be8ed93afe8b
|
|
HEAD_REF master
|
|
PATCHES
|
|
find-openssl.patch
|
|
)
|
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
set(LINUX_TCP ON)
|
|
else()
|
|
set(LINUX_TCP OFF)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DAMQP-CPP_BUILD_SHARED=OFF
|
|
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(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)
|