Skip to content

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

WA for cmake >= 4.0 (#29856)

Oleg Pipikin5e8beedb1c9d
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2187deb8e8c..30bf72537f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,10 @@ if(POLICY CMP0177)
cmake_policy(SET CMP0177 NEW)
endif()
+# set CMAKE_POLICY_VERSION_MINIMUM to avoid errors from 3rd party dependencies
+# after cmake is updated to 4.0
+set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
+
project(OpenVINO
DESCRIPTION "OpenVINO toolkit"
HOMEPAGE_URL "https://docs.openvino.ai/2025/index.html"