Put json library finding under ENABLE_SAMPLES (#14138)

This commit is contained in:
Ilya Lavrenov 2022-11-23 10:07:17 +04:00 committed by GitHub
parent 0b361768ce
commit 86e71003e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,12 +286,13 @@ endif()
# nlohmann json
#
add_subdirectory(json)
if(ENABLE_SAMPLES)
add_subdirectory(json)
openvino_developer_export_targets(COMPONENT openvino_common
TARGETS nlohmann_json)
ov_install_static_lib(nlohmann_json ${OV_CPACK_COMP_CORE})
# this is required only because of VPUX plugin reused this
openvino_developer_export_targets(COMPONENT openvino_common
TARGETS nlohmann_json)
endif()
#
# Install