mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 08:48:01 +08:00
4c959c6861
* [restclient-cpp] Fix installation. Remove only debug directory * [restclient-cpp] Fix directory cleanup * [restclient-cpp] Update library * [restclient-cpp] Add msvc patch * [restclient-cpp] Remove lib directory on dynamic compile * [restclient-cpp] set VCPKG_POLICY_DLLS_WITHOUT_LIBS * [restclient-cpp] Remove lib directory on dynamic compile * [restclient-cpp] Set compile type static * Remove patch * [restclient-cpp] Changes and fixes Update version Update handling copiright Remove no longer needed include Move COMPILE_TYPE parameter * [restclient-cpp] Update description. Add Homepage * [restclient-cpp] Bump to 0.5.2. Remove COMPILE_TYPE option * [restclient-cpp] Set ONLY_STATIC_LIBRARY for Windows * [restclient-cpp] Change version num 0.5.2-1 -> 0.5.2
32 lines
843 B
CMake
32 lines
843 B
CMake
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mrtazz/restclient-cpp
|
|
REF 0.5.2
|
|
SHA512 f6acc6a3d5cb852d6e507463d94d2f6192a941f0c26fef7c674e9ff7753cf5474522052a2065774050d01af5c6d2a3b86398f43cd2e4f5d03abcaac9a21ef4b7
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/restclient-cpp)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Remove includes in debug
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|