mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 15:37:54 +08:00
22 lines
702 B
CMake
22 lines
702 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO danielaparker/jsoncons
|
|
REF 487cac65f0d155424d1cb1718bd1231538cd5c53 # v0.153.0
|
|
SHA512 f4b2bdad1827572de1e626bd26d292fa9d8b5b779957bc8b80080909868f51297e4d7f4b8c599fa255f06e8687cecb1692bad0dc1e688dc84e0178b7d3d2cf86
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_TESTS=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
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)
|