diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/restclient-cpp/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/restclient-cpp/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/restclient-cpp/portfile.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/restclient-cpp/portfile.cmake b/vcpkg/ports/restclient-cpp/portfile.cmake new file mode 100644 index 0000000..9b7ffe2 --- /dev/null +++ b/vcpkg/ports/restclient-cpp/portfile.cmake @@ -0,0 +1,30 @@ +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 fdf722bbab55d0838200dfbf2c3a2815741c8a7e #v2024-01-09 + SHA512 da1c0286b782c7baa3c40bf5bede5c78e0adde9a3172233cbdede792705b074c26e746f192cccb2eded4bf528f10d1fd5bc276fc1b6a3b9cc695fbeb9feadfff + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE + -DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(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) |