Minimize rebuild for Makefiles generator (#16729)

* Add dependency from ov_plugins.hpp only for files which use it

* Remove rebuild files depends on CI_BUILD_NUMBER changes

* Try to fix static build

* Fixed comments

* Fixed build

* Merged some change

* Try to fix build

* Try to fix nvidia build

* Take LTO value from target property
This commit is contained in:
Ilya Churaev
2023-04-06 11:02:28 +04:00
committed by GitHub
parent f2894d09e9
commit 70ef0b5316
10 changed files with 58 additions and 31 deletions

View File

@@ -5,7 +5,6 @@
set(TARGET_NAME ov_auto_batch_unit_tests)
set(CI_BUILD_NUMBER "unittest")
addVersionDefines(${OpenVINO_SOURCE_DIR}/src/plugins/auto_batch/src/auto_batch.cpp CI_BUILD_NUMBER)
add_definitions(-DAUTOBATCH_UNITTEST)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
@@ -52,5 +51,6 @@ addIeTargetTest(
LABELS
Auto_Batch
)
ov_add_version_defines(${OpenVINO_SOURCE_DIR}/src/plugins/auto_batch/src/auto_batch.cpp ${TARGET_NAME})
set_ie_threading_interface_for(${TARGET_NAME})