2020-06-11 15:21:27 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pboettch/json-schema-validator
|
2023-02-01 05:26:42 +08:00
|
|
|
REF "${VERSION}"
|
2024-01-27 01:31:00 +08:00
|
|
|
SHA512 6d207031acdb94c44f96ff6346dccaf98f2c9d3619d71e419ddabff548ea34d50e8eb103622c99ae28ecb7fddedd687b297e5ad934aa0106c58ac59fc4d65ea9
|
2020-06-11 15:21:27 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-02-01 05:26:42 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-11 15:21:27 +08:00
|
|
|
OPTIONS
|
2023-02-01 05:26:42 +08:00
|
|
|
-DJSON_VALIDATOR_BUILD_TESTS=OFF
|
|
|
|
-DJSON_VALIDATOR_BUILD_EXAMPLES=OFF
|
2020-06-11 15:21:27 +08:00
|
|
|
)
|
|
|
|
|
2023-02-01 05:26:42 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-11 15:21:27 +08:00
|
|
|
|
2023-02-01 05:26:42 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME nlohmann_json_schema_validator CONFIG_PATH lib/cmake/nlohmann_json_schema_validator)
|
2020-06-11 15:21:27 +08:00
|
|
|
|
2023-02-01 05:26:42 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-06-11 15:21:27 +08:00
|
|
|
|
2023-02-01 05:26:42 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2024-02-06 03:31:14 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-02-01 05:26:42 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2020-06-11 15:21:27 +08:00
|
|
|
|