vcpkg/ports/cppzmq/portfile.cmake

23 lines
719 B
CMake
Raw Normal View History

2017-10-24 00:04:00 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zeromq/cppzmq
2020-10-29 15:11:01 +08:00
REF 76bf169fd67b8e99c1b0e6490029d9cd5ef97666 # v4.7.1
SHA512 03d7444b36937521e2826c7dd2f6cf55d820d0e4d66c30e3947527e13ba2d7cd68f426b5bfedb5a0d0deb4245893a872d5132b68ef966063d72fcd95e42e3eed
2017-10-24 00:04:00 +08:00
HEAD_REF master
2016-11-01 16:32:25 +08:00
)
2018-04-18 06:37:46 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DCPPZMQ_BUILD_TESTS=OFF
2018-04-18 06:37:46 +08:00
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/cppzmq)
2020-10-29 15:11:01 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/${PORT}/libzmq-pkg-config)
2016-11-01 16:32:25 +08:00
# Handle copyright
2020-10-29 15:11:01 +08:00
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)