vcpkg/ports/yyjson/portfile.cmake
myd7349 d656cf0dff
[yyjson] Update to 0.5.1 (#25582)
* [yyjson] Update to 0.5.1

* [yyjson] Bump version
2022-07-06 13:51:39 -07:00

34 lines
1021 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ibireme/yyjson
REF 0.5.1
SHA512 dbae242ee023e872184b4f28e32e3044adfa0cf00e0f480e961a0c8979ff69b2d2f95a33504f10883eba16b68db0adce3a38c2f99dcb6f94eb73a107b89cca95
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
INVERTED_FEATURES
reader YYJSON_DISABLE_READER
writer YYJSON_DISABLE_WRITER
fast-fp-conv YYJSON_DISABLE_FAST_FP_CONV
non-standard YYJSON_DISABLE_NON_STANDARD
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DYYJSON_BUILD_TESTS=OFF
-DYYJSON_BUILD_MISC=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)