vcpkg/ports/jsoncons/portfile.cmake
Daniel Parker 7f76810a5f
[jsoncons] Update to 0.176.0 (#39211)
Fixes danielaparker/jsoncons #519 
Fixes danielaparker/jsoncons #509
Fixes danielaparker/jsoncons #520 
Fixes danielaparker/jsoncons #521 
Fixes danielaparker/jsoncons #518
2024-06-11 12:18:03 -07:00

26 lines
725 B
CMake

# header-only library
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO danielaparker/jsoncons
REF v${VERSION}
SHA512 dcb13083bbdbd5453381d4a1c368cc25e3d89f873b80541d02b8bfcae0bd0fa5526dee42db42a4438b505a5ee97a6ba30f6680208ab554aa69eb4bb65041e362
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DJSONCONS_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")