mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 22:41:38 +08:00
cda8ba09f3
19 lines
726 B
CMake
19 lines
726 B
CMake
# Header-only library
|
|||
vcpkg_from_github(
|
|||
OUT_SOURCE_PATH SOURCE_PATH
|
|||
REPO beached/header_libraries
|
|||
REF b44178fed16111944d1338999d88b129797608ce
|
|||
SHA512 0b13bec450ba68e2b2ac2e76c9c529fa84a95df092b104660c88e9cfda91df9e5b70f0f7f6bcbb4f7ea05c1a5613734ceff8d84929b37b115c2bc86c232d9261
|
|||
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)
|