vcpkg/ports/restclient-cpp/portfile.cmake

31 lines
882 B
CMake
Raw Normal View History

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
REF b782bd26539a3d1a8edcb6d8a3493b111f8fac66 #v2022-02-009
SHA512 992b2c067c7b672432a202fea6b5263ff51ca77facace5078077e77e57390d3ddcb99e0e20ad1a1595612efbb625d34f4d2cd8c4a2ac4bb33e3f9d5d28c2c579
2019-06-18 02:30:41 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
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_cmake_install()
2019-06-18 02:30:41 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restclient-cpp)
2019-06-18 02:30:41 +08:00
vcpkg_copy_pdbs()
2019-06-18 02:30:41 +08:00
# Remove includes in debug
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2019-06-18 02:30:41 +08:00
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)