2019-01-27 04:55:11 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO png85/json_spirit
|
|
|
|
REF 5e16cca59b31d8beda0f07e3917ce11dcd43b3db
|
|
|
|
SHA512 6ac0f15726391c9003e516213535c8d30e98b6c33bca0b03e9bf38e7085824bfc6cfaab267b1dfccbfcc567638d26f722d7e331f4e3b60d3acd5c717cb1fafcc
|
|
|
|
HEAD_REF master
|
2019-02-02 03:12:29 +08:00
|
|
|
PATCHES
|
|
|
|
dll-wins.patch
|
|
|
|
Fix-link-error-C1128.patch
|
2019-01-30 04:42:10 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-01-27 04:55:11 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-01-30 04:42:10 +08:00
|
|
|
OPTIONS -DBUILD_STATIC_LIBS=off -DJSON_SPIRIT_DEMOS=off -DJSON_SPIRIT_TESTS=off)
|
2019-01-27 04:55:11 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-27 04:55:11 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json-spirit RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-07-18 12:54:24 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
2019-01-27 04:55:11 +08:00
|
|
|
vcpkg_copy_pdbs()
|