From 1f46eaead475e5527097405999e45cf9869858fd Mon Sep 17 00:00:00 2001 From: Tomasz Jankowski Date: Thu, 11 Feb 2021 22:58:19 +0100 Subject: [PATCH] Set system deps for mac --- ngraph/test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ngraph/test/CMakeLists.txt b/ngraph/test/CMakeLists.txt index 14d4cb58d018da..6497bcc0d8601f 100644 --- a/ngraph/test/CMakeLists.txt +++ b/ngraph/test/CMakeLists.txt @@ -418,10 +418,10 @@ if (NGRAPH_ONNX_IMPORT_ENABLE AND NOT NGRAPH_USE_PROTOBUF_LITE) # to onnx lib, what conflicts with onnx_importer lib false failing onnx_editor tests. foreach(_lib onnx onnx_proto ${Protobuf_LIBRARIES}) get_target_property(_incl_dirs ${_lib} INTERFACE_INCLUDE_DIRECTORIES) - if(_incl_dirs) - target_include_directories(unit-test PRIVATE ${_incl_dirs}) - endif() + target_include_directories(unit-test PRIVATE ${_incl_dirs}) endforeach() + target_include_directories(unit-test SYSTEM PRIVATE ${Protobuf_INCLUDE_DIRS}) + get_target_property(_cmpl_defs_from_onnx onnx INTERFACE_COMPILE_DEFINITIONS) if(_cmpl_defs_from_onnx) target_compile_definitions(unit-test PRIVATE ${_cmpl_defs_from_onnx})