2017-11-15 01:07:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO alanxz/rabbitmq-c
|
2024-03-28 06:37:20 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 18cb429bcfa457e359128bf458c8b9f60b1c929a8ca3a8206f40d6390d7d4c6f4c5140eb7e9ab7b401d035fc48324cbe963d058100ab65ef3faba59e7f95607e
|
2017-11-15 01:07:17 +08:00
|
|
|
HEAD_REF master
|
2019-05-24 13:02:13 +08:00
|
|
|
PATCHES
|
2022-02-15 04:53:12 +08:00
|
|
|
fix-uwpwarning.patch
|
2017-11-15 01:07:17 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
|
|
|
2022-02-15 04:53:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-11-15 01:07:17 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2024-03-28 06:37:20 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2017-11-15 01:07:17 +08:00
|
|
|
-DBUILD_TOOLS=OFF
|
2022-06-18 05:14:40 +08:00
|
|
|
-DBUILD_STATIC_LIBS=${BUILD_STATIC}
|
2017-11-15 01:07:17 +08:00
|
|
|
)
|
|
|
|
|
2022-02-15 04:53:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-15 01:07:17 +08:00
|
|
|
|
2022-02-15 04:53:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME rabbitmq-c CONFIG_PATH lib/cmake/rabbitmq-c)
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-06-12 13:16:43 +08:00
|
|
|
|
2017-11-15 01:07:17 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-02-15 04:53:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2024-03-28 06:37:20 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|