vcpkg/ports/daw-header-libraries/portfile.cmake
JonLiu1993 85f97d4f89
[daw-json-link] update to v3.10.0 and dependency (#28053)
* [daw-json-link] update to v3.10.0 and dependency

* udpate evrsion
2022-11-29 12:02:25 -08:00

19 lines
741 B
CMake

# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO beached/header_libraries
REF a744feca74db57fa59f1b1dd09ad8e7cd03118f7 #v2.76.2
SHA512 9b8769a656047b880d1e56493fa501407c259069681c8bdd3f55fd6c7088de7be825db5450de26caf3cdd781948a8865501d35175977355df117320312b1f77d
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)