2023-01-07 17:17:19 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2019-04-12 15:40:25 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO danielaparker/jsoncons
|
2023-01-07 17:17:19 +08:00
|
|
|
REF v${VERSION}
|
2024-08-20 00:24:20 +08:00
|
|
|
SHA512 3df0dddb54eec43885680ab3d1dffb8ba27ebff0e3c674a11577998a1ff930c82def184be7d1d7eb630c38b27e262926d218cf75599768628ab489cc965afc80
|
2019-04-12 15:40:25 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-05-26 03:35:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-04-12 15:40:25 +08:00
|
|
|
OPTIONS
|
2021-03-25 03:46:18 +08:00
|
|
|
-DJSONCONS_BUILD_TESTS=OFF
|
2019-04-12 15:40:25 +08:00
|
|
|
)
|
|
|
|
|
2022-05-26 03:35:29 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2021-06-22 05:21:22 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-04-12 15:40:25 +08:00
|
|
|
|
2022-05-26 03:35:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2023-01-07 17:17:19 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|