portfile.cmake 882 B

123456789101112131415161718192021222324252627282930
  1. if (VCPKG_TARGET_IS_WINDOWS)
  2. vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
  3. endif()
  4. vcpkg_from_github(
  5. OUT_SOURCE_PATH SOURCE_PATH
  6. REPO mrtazz/restclient-cpp
  7. REF b782bd26539a3d1a8edcb6d8a3493b111f8fac66 #v2022-02-009
  8. SHA512 992b2c067c7b672432a202fea6b5263ff51ca77facace5078077e77e57390d3ddcb99e0e20ad1a1595612efbb625d34f4d2cd8c4a2ac4bb33e3f9d5d28c2c579
  9. HEAD_REF master
  10. )
  11. vcpkg_cmake_configure(
  12. SOURCE_PATH "${SOURCE_PATH}"
  13. OPTIONS
  14. -DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
  15. -DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
  16. )
  17. vcpkg_cmake_install()
  18. vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restclient-cpp)
  19. vcpkg_copy_pdbs()
  20. # Remove includes in debug
  21. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
  22. # Handle copyright
  23. file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)