Add ENABLE_STRICT_DEPENDENCIES for faster parallel builds (#5473)

This commit is contained in:
Andrey Somsikov authored and GitHub committed 2021-06-09 08:21:03 +03:00
1 parent 57850f0a87
commit f0cf1dffa7
2 files changed
+12 -2

No files matched your search

+10 -2
View File
@@ -286,13 +286,21 @@ set_source_files_properties(includes.cpp PROPERTIES COMPILE_DEFINITIONS
if (ENABLE_MKL_DNN)
message(STATUS "NGRAPH_TESTS: IE:CPU enabled")
set(ACTIVE_BACKEND_LIST ${ACTIVE_BACKEND_LIST} "IE:CPU")
list(APPEND UNIT_TESTS_DEPENDENCIES MKLDNNPlugin)
if (NOT ENABLE_STRICT_DEPENDENCIES)
# For convinience add a runtime dependency to build along with this target.
# Warning: Parallel build with -GNinja may not be efficient.
list(APPEND UNIT_TESTS_DEPENDENCIES MKLDNNPlugin)
endif()
endif()
if (ENABLE_CLDNN)
message(STATUS "NGRAPH_TESTS: IE:GPU enabled")
set(ACTIVE_BACKEND_LIST ${ACTIVE_BACKEND_LIST} "IE:GPU")
list(APPEND UNIT_TESTS_DEPENDENCIES clDNNPlugin)
if (NOT ENABLE_STRICT_DEPENDENCIES)
# For convinience add a runtime dependency to build along with this target.
# Warning: Parallel build with -GNinja may not be efficient.
list(APPEND UNIT_TESTS_DEPENDENCIES clDNNPlugin)
endif()
endif()
if (NGRAPH_INTERPRETER_ENABLE)