vcpkg/ports/jsoncons/portfile.cmake
Daniel Parker a025c1b045
[jsoncons] Update to 0.165.0 (#18284)
* [jsoncons] Update to 0.165.0

* [jsoncons] Update to 0.165.0, update baseline

* [jsoncons] Added vcpkg_fixup_pkgconfig() to portfolio.cmake

* update version

Co-authored-by: Jonliu1993 <13720414433@163.com>
2021-06-21 14:21:22 -07:00

23 lines
735 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO danielaparker/jsoncons
REF 2626df4ccfdaab814b789abdd5936ffe00f5f6dc # v0.165.0
SHA512 da72515d91c443e6c9a89527d9aea7ca8805865b4a8a8f3f067d4a065cd27eea3a5de83f6b55e6e8c95cf79292e06cb7d56ea83499bd9e80afb80d81007a316d
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DJSONCONS_BUILD_TESTS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)