2018-06-26 12:43:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ThePhD/sol2
|
2023-12-08 17:26:20 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 4404b124a4f331d77459c01a92cd73895301e7d3ef829a0285980f0138b9cc66782de3713d54f017d5aad7d8a11d23eeffbc5f3b39ccb4d4306a955711d385dd
|
2018-06-26 12:43:00 +08:00
|
|
|
HEAD_REF develop
|
2023-12-08 17:26:20 +08:00
|
|
|
PATCHES
|
|
|
|
header-only.patch
|
2018-06-26 12:43:00 +08:00
|
|
|
)
|
|
|
|
|
2023-12-08 17:26:20 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
|
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
2022-06-28 02:47:49 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sol2)
|
2023-12-08 17:26:20 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-06-26 12:43:00 +08:00
|
|
|
|
2023-12-08 17:26:20 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
2023-12-08 17:26:20 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|