Commit ee8b9366 authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by Scott Cyphers

Added explicit dependencies between buildable target and external project (#3962)

parent cca14ae1
......@@ -35,6 +35,12 @@ if(WIN32)
)
endif()
if(CMAKE_BUILD_TYPE)
list(APPEND GTEST_CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
)
endif()
if(UNIX)
# workaround for compile error
# related: https://github.com/intel/mkl-dnn/issues/55
......
......@@ -31,6 +31,7 @@ if(NGRAPH_LIB_VERSIONING_ENABLE)
endif()
target_include_directories(ngraph_test_util PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
target_link_libraries(ngraph_test_util PRIVATE ngraph libgtest)
add_dependencies(ngraph_test_util ext_gtest)
if (NGRAPH_UNIT_TEST_OPENVINO_ENABLE)
add_definitions(-DNGRAPH_UNIT_TEST_OPENVINO_ENABLE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment