mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 15:39:00 +08:00
22 lines
702 B
CMake
22 lines
702 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO danielaparker/jsoncons
|
|
REF 5a52f1fc732f2dccd23496ad4c096b61e8735759 # v0.156.1
|
|
SHA512 8616a7ec5167a1051d6b6ca43faccaaa05c26976061f0034777b115dd6b7560650b32d14e41ba0b3209a6b999e191b62da514133cc043e145d3d0b647c49cab5
|
|
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)
|