Use system dependencies (#11419)
* Try to improve gflags * Try to improve gflags: part 2 * Tried to use dependencies on system * Use nlohmann_jsonConfig from system * Enabled nlohmann_json from system * Improvements * handle system gflags in developer package * Simplifications * Simplify dependency management * Corrected package names * Fixed subgraphsDumper configure stage * Try to fix rhel8 * Try to fix macosx * Fixed VPUX build * Fixed aliasing issues * Suppress some wanrings * export gflags when build it * Fixed some LTO * Try to fix Mac * revert * use gflags as private dependency * Aligned targets in developer package * Fixed frontends tests build on U20 with LTO * PAssed * Don't use pkg_search_module(zlib ..) during cross-compilation * Removed unused variables * Fixed finding of zlib during cross-compilation
This commit is contained in:
@@ -10,7 +10,7 @@ file (GLOB HDR ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
|
||||
ie_add_sample(NAME ${TARGET_NAME}
|
||||
SOURCES ${SRC}
|
||||
HEADERS ${HDR}
|
||||
DEPENDENCIES nlohmann_json format_reader ie_samples_utils)
|
||||
DEPENDENCIES nlohmann_json::nlohmann_json format_reader ie_samples_utils)
|
||||
|
||||
# Optional OpenCL dependnency
|
||||
|
||||
@@ -63,7 +63,6 @@ endif()
|
||||
find_package(OpenCV COMPONENTS core QUIET)
|
||||
if(NOT OpenCV_FOUND)
|
||||
message(WARNING "OpenCV is disabled or not found, ${TARGET_NAME} will be built without OpenCV support. Set OpenCV_DIR")
|
||||
target_link_libraries(${TARGET_NAME} PRIVATE nlohmann_json_schema_validator)
|
||||
else()
|
||||
target_compile_definitions(${TARGET_NAME} PRIVATE USE_OPENCV)
|
||||
target_link_libraries(${TARGET_NAME} PRIVATE opencv_core)
|
||||
|
||||
Reference in New Issue
Block a user