vcpkg/ports/rpclib/portfile.cmake

27 lines
682 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2017-10-27 09:16:36 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO rpclib/rpclib
REF v2.3.0
SHA512 9C65AE5D000CD66E39498667DC826A4E8A2C28EB4138CFFE3AA09D5DDC22575551B9FA6CE9D951343213B9583F947899CB18B58130AEAEE36DAB5881EA496272
2017-10-27 09:16:36 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
2017-10-27 09:16:36 +08:00
)
vcpkg_cmake_install()
2017-10-27 09:16:36 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2017-10-27 09:16:36 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/rpclib")
2017-10-27 09:16:36 +08:00
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()