OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Fix build-time race condition for NPU VM target (#36448)
Gladilov, Gleb655b96740d6c
diff --git a/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt b/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txtindex 6c077c0b185..6264da970c6 100644--- a/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt+++ b/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt@@ -28,3 +28,10 @@ target_include_directories(${TARGET_NAME}if(NOT BUILD_SHARED_LIBS)target_compile_definitions(${TARGET_NAME} PRIVATE OPENVINO_STATIC_LIBRARY)endif()++# The include directories above use TARGET_PROPERTY expressions instead of+# target_link_libraries, so CMake creates no build-order edge. Level Zero+# headers are copied into the build directory by prepare_ze_headers; without+# this explicit dependency a parallel build may compile ${TARGET_NAME} before+# the headers are copied, causing a missing-header error+add_dependencies(${TARGET_NAME} prepare_ze_headers)