mirror of https://github.com/microsoft/vcpkg.git
15 lines
768 B
Diff
15 lines
768 B
Diff
diff --git a/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt b/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt
|
|
index 6264da970c..e526291afd 100644
|
|
--- a/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt
|
|
+++ b/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt
|
|
@@ -34,4 +34,8 @@ endif()
|
|
# 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)
|
|
+# If ENABLE_SYSTEM_LEVEL_ZERO enabled, prepare_ze_headers is not defined so
|
|
+# it may not exist
|
|
+if (TARGET prepare_ze_headers)
|
|
+ add_dependencies(${TARGET_NAME} prepare_ze_headers)
|
|
+endif()
|