vcpkg/ports/hazelcast-cpp-client/portfile.cmake
ihsan demir d51426487a
[hazelcast-cpp-client] update for new release version 4.1.0 (#17724)
* Added the new hazelcast-cpp-client version 4.1.0.

* added the `git-tree` for hazelcast-cpp-client 4.1.0 version.
2021-05-13 13:27:00 -07:00

29 lines
783 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO hazelcast/hazelcast-cpp-client
REF v4.1.0
SHA512 e93a0d0d9e6298dc974e8dcbd8487514d4f7be1a5341ac4de2b65ebdb30e5d2428c7605579121ce0469466b26ef9fafd41c5101a9607f2c63b10beaf63e3c762
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
openssl WITH_OPENSSL
example BUILD_EXAMPLES
)
vcpkg_configure_cmake(
SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/hazelcast-cpp-client)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)