2020-01-29 08:46:23 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2019-06-18 02:30:41 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mrtazz/restclient-cpp
|
2020-05-12 05:51:34 +08:00
|
|
|
REF 0.5.2
|
|
|
|
SHA512 f6acc6a3d5cb852d6e507463d94d2f6192a941f0c26fef7c674e9ff7753cf5474522052a2065774050d01af5c6d2a3b86398f43cd2e4f5d03abcaac9a21ef4b7
|
2019-06-18 02:30:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-06-27 07:03:27 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
|
2019-06-18 02:30:41 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/restclient-cpp)
|
|
|
|
|
2020-01-29 08:46:23 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-06-18 02:30:41 +08:00
|
|
|
|
2020-05-12 05:51:34 +08:00
|
|
|
# Remove includes in debug
|
2020-01-29 08:46:23 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-06-18 02:30:41 +08:00
|
|
|
|
2020-01-29 08:46:23 +08:00
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|