else()
ext_message(WARNING "Inference Engine DEBUG binaries are missed")
endif()
-
- target_link_libraries(IE::inference_engine${ie_library_suffix} INTERFACE ${CMAKE_DL_LIBS})
else()
# Only Release binaries are distributed for Linux systems
set_target_properties(IE::inference_engine${ie_library_suffix} PROPERTIES
set_target_properties(IE::inference_engine${ie_library_suffix} PROPERTIES
INTERFACE_COMPILE_OPTIONS "-Wno-error=deprecated-declarations")
endif()
- target_link_libraries(IE::inference_engine${ie_library_suffix} INTERFACE ${CMAKE_DL_LIBS})
endif()
endforeach()
target_link_libraries(${TARGET_NAME} PRIVATE Threads::Threads pugixml openvino::itt
${NGRAPH_LIBRARIES} inference_engine_transformations
- PUBLIC ${CMAKE_DL_LIBS} ${TARGET_NAME}_legacy)
+ PUBLIC ${TARGET_NAME}_legacy)
target_include_directories(${TARGET_NAME} INTERFACE ${PUBLIC_HEADERS_DIR} PRIVATE
$<TARGET_PROPERTY:${TARGET_NAME}_plugin_api,INTERFACE_INCLUDE_DIRECTORIES>)
set_target_properties(${TARGET_NAME}_s PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}_s)
endif()
-target_link_libraries(${TARGET_NAME}_s PRIVATE ${NGRAPH_LIBRARIES} inference_engine_transformations openvino::itt
-# NOTE: public linkage with ITT is important here! without it binaries that use this library do not
-# get proper compile flags to support ITT which causes hard-to-detect bugs.
- PUBLIC pugixml ${CMAKE_DL_LIBS})
+target_link_libraries(${TARGET_NAME}_s PRIVATE ${CMAKE_DL_LIBS} ${NGRAPH_LIBRARIES}
+ inference_engine_transformations openvino::itt
+ PUBLIC pugixml)
target_compile_definitions(${TARGET_NAME}_s PUBLIC USE_STATIC_IE)
# dynamic libraries
inference_engine_lp_transformations
inference_engine_transformations
- inference_engine_ir_v7_reader
- ${CMAKE_DL_LIBS})
+ inference_engine_ir_v7_reader)
if(TARGET libGNAStubs)
target_link_libraries(${TARGET_NAME} PRIVATE libGNAStubs)