vcpkg/ports/daw-header-libraries/portfile.cmake
Frank a830d3f27b
[daw-json-link] update to v3.0.0 (#25494)
* [daw-json-link] update to v3.0.0

* update version
2022-06-30 12:49:52 -07:00

19 lines
741 B
CMake

# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO beached/header_libraries
REF 67637711bc87f959b6d52adab56a819765b94ae1 #v2.46.2
SHA512 f9f55ba15b33f2bb5b71fa8a87a189deaa377b848188008d56e884d19d863b4b98ad705d84811f17e2a14e60cc52b8a492fac525a19076e71ecd9dcbdad55dfc
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
# remove empty lib and debug/lib directories (and duplicate files from debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)