vcpkg/ports/librabbitmq/portfile.cmake

33 lines
814 B
CMake
Raw Normal View History

2017-11-15 01:07:17 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alanxz/rabbitmq-c
REF "v${VERSION}"
SHA512 62b4e92fc270c5bdc5343cfaef5245e29a9b6d8983071a47391a93ae1b766ed7b98a6a546e8528befbc284f5ed17da4647595e94341380bfa76598569191e6c0
2017-11-15 01:07:17 +08:00
HEAD_REF master
PATCHES
fix-uwpwarning.patch
2017-11-15 01:07:17 +08:00
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2017-11-15 01:07:17 +08:00
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
2017-11-15 01:07:17 +08:00
-DBUILD_TOOLS=OFF
-DBUILD_STATIC_LIBS=${BUILD_STATIC}
2017-11-15 01:07:17 +08:00
)
vcpkg_cmake_install()
2017-11-15 01:07:17 +08:00
vcpkg_cmake_config_fixup(PACKAGE_NAME rabbitmq-c CONFIG_PATH lib/cmake/rabbitmq-c)
vcpkg_fixup_pkgconfig()
2017-11-15 01:07:17 +08:00
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")