mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 01:09:02 +08:00
20 lines
609 B
CMake
20 lines
609 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ThePhD/sol2
|
|
REF "v${VERSION}"
|
|
SHA512 4404b124a4f331d77459c01a92cd73895301e7d3ef829a0285980f0138b9cc66782de3713d54f017d5aad7d8a11d23eeffbc5f3b39ccb4d4306a955711d385dd
|
|
HEAD_REF develop
|
|
PATCHES
|
|
header-only.patch
|
|
)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sol2)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|