2024-04-09 15:42:22 +00:00
|
|
|
vcpkg_download_distfile(PATCH_JSON_SCHEMA_VALIDATOR_PR_315
|
|
|
|
URLS https://github.com/pboettch/json-schema-validator/commit/0034c113477f83c28d4380de1ee189c25b1168e6.patch
|
|
|
|
SHA512 5c165b50813b0d9937ff0eb4d4a81e2d1e77718ac3b0d02b93931c8eddb4e06e4fae1822c5cc97a5b01c995916a29d0af03fcbcd8f059cb29cfeb0e2371b15e3
|
|
|
|
FILENAME 0034c113477f83c28d4380de1ee189c25b1168e6.patch
|
|
|
|
)
|
|
|
|
|
2020-06-11 12:51:27 +05:30
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pboettch/json-schema-validator
|
2023-01-31 22:26:42 +01:00
|
|
|
REF "${VERSION}"
|
2024-01-27 01:31:00 +08:00
|
|
|
SHA512 6d207031acdb94c44f96ff6346dccaf98f2c9d3619d71e419ddabff548ea34d50e8eb103622c99ae28ecb7fddedd687b297e5ad934aa0106c58ac59fc4d65ea9
|
2020-06-11 12:51:27 +05:30
|
|
|
HEAD_REF master
|
2024-04-09 15:42:22 +00:00
|
|
|
PATCHES
|
|
|
|
"${PATCH_JSON_SCHEMA_VALIDATOR_PR_315}"
|
2020-06-11 12:51:27 +05:30
|
|
|
)
|
|
|
|
|
2024-04-09 15:42:22 +00:00
|
|
|
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "dynamic" BUILD_SHARED_LIBS)
|
|
|
|
|
2023-01-31 22:26:42 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-11 12:51:27 +05:30
|
|
|
OPTIONS
|
2024-04-09 15:42:22 +00:00
|
|
|
-DJSON_VALIDATOR_INSTALL=ON
|
2023-01-31 22:26:42 +01:00
|
|
|
-DJSON_VALIDATOR_BUILD_TESTS=OFF
|
|
|
|
-DJSON_VALIDATOR_BUILD_EXAMPLES=OFF
|
2024-04-09 15:42:22 +00:00
|
|
|
-DJSON_VALIDATOR_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
2020-06-11 12:51:27 +05:30
|
|
|
)
|
|
|
|
|
2023-01-31 22:26:42 +01:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2020-06-11 12:51:27 +05:30
|
|
|
|
2024-04-09 15:42:22 +00:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "nlohmann_json_schema_validator" CONFIG_PATH "lib/cmake/nlohmann_json_schema_validator")
|
2023-01-31 22:26:42 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2024-02-05 20:31:14 +01:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|