Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Update ENABLE_SYSTEM_FLATBUFFERS and ENABLE_SYSTEM_LEVEL_ZERO default value conditions (#34313)

Egor Tyuvaevf6288c2ec940
diff --git a/cmake/features.cmake b/cmake/features.cmake
index 9a85acc230e..61e722bc0d7 100644
--- a/cmake/features.cmake
+++ b/cmake/features.cmake
@@ -200,7 +200,7 @@ ov_dependent_option (ENABLE_SYSTEM_TBB "Enables use of system TBB" ${ENABLE_SYS
ov_option (ENABLE_SYSTEM_PUGIXML "Enables use of system PugiXML" OFF)
# the option is on by default, because we use only flatc compiler and don't use any libraries
ov_dependent_option(ENABLE_SYSTEM_FLATBUFFERS "Enables use of system flatbuffers" ${ENABLE_SYSTEM_FLATBUFFERS_DEFAULT}
- "ENABLE_OV_TF_LITE_FRONTEND" OFF)
+ "ENABLE_OV_TF_LITE_FRONTEND OR ENABLE_INTEL_NPU" OFF)
ov_dependent_option (ENABLE_SYSTEM_OPENCL "Enables use of system OpenCL" ${ENABLE_SYSTEM_LIBS_DEFAULT}
"ENABLE_INTEL_GPU" OFF)
# the option is turned off by default, because we compile our own static version of protobuf
@@ -212,7 +212,7 @@ ov_dependent_option (ENABLE_SYSTEM_SNAPPY "Enables use of system version of Snap
"ENABLE_SNAPPY_COMPRESSION" OFF)
# the option is turned off by default, because we are not sure that system version of ZE loader is fresh enough
ov_dependent_option (ENABLE_SYSTEM_LEVEL_ZERO "Enables use of system version of Level Zero" OFF
- "ENABLE_INTEL_NPU" OFF)
+ "ENABLE_INTEL_NPU OR ENABLE_INTEL_GPU" OFF)
ov_dependent_option(ENABLE_JS "Enables JS API building" ${ENABLE_JS_DEFAULT} "NOT ANDROID;NOT EMSCRIPTEN" OFF)