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
Fixed warnings with cmake 3.31 (#28686)
Ilya Lavrenovea58a5e5ecc1
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 877417403b8..6c2f770b60a 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -41,6 +41,11 @@ if(POLICY CMP0149)cmake_policy(SET CMP0149 NEW)endif()+if(POLICY CMP0177)+ # install() DESTINATION paths are normalized.+ cmake_policy(SET CMP0177 NEW)+endif()+project(OpenVINODESCRIPTION "OpenVINO toolkit"HOMEPAGE_URL "https://docs.openvino.ai/2024/home.html"diff --git a/cmake/developer_package/OpenVINODeveloperScriptsConfig.cmake b/cmake/developer_package/OpenVINODeveloperScriptsConfig.cmakeindex ecb52325d72..4c63b19960b 100644--- a/cmake/developer_package/OpenVINODeveloperScriptsConfig.cmake+++ b/cmake/developer_package/OpenVINODeveloperScriptsConfig.cmake@@ -213,16 +213,18 @@ set(CMAKE_POLICY_DEFAULT_CMP0074 NEW)set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)# CMake 3.15+: export(PACKAGE) does not populate package registry by default.set(CMAKE_POLICY_DEFAULT_CMP0090 NEW)-# CMake 3.15: Modules FindPython3, FindPython2 and FindPython use LOCATION for lookup strategy+# CMake 3.15+: Modules FindPython3, FindPython2 and FindPython use LOCATION for lookup strategyset(CMAKE_POLICY_DEFAULT_CMP0094 NEW)# CMake 3.19+: An imported target missing its location property fails during generation.set(CMAKE_POLICY_DEFAULT_CMP0111 NEW)-# CMake 3.22+ :cmake_dependent_option() supports full Condition Syntax+# CMake 3.22+: cmake_dependent_option() supports full Condition Syntaxset(CMAKE_POLICY_DEFAULT_CMP0127 NEW)-# CMake 3.24+ :prefers to set the timestamps of all extracted contents to the time of the extraction+# CMake 3.24+: prefers to set the timestamps of all extracted contents to the time of the extractionset(CMAKE_POLICY_DEFAULT_CMP0135 NEW)-# CMake 3.27+ :Visual Studio Generators select latest Windows SDK by default.+# CMake 3.27+: Visual Studio Generators select latest Windows SDK by default.set(CMAKE_POLICY_DEFAULT_CMP0149 NEW)+# CMake 3.31+: install() DESTINATION paths are normalized.+set(CMAKE_POLICY_DEFAULT_CMP0177 NEW)set(CMAKE_FIND_USE_PACKAGE_REGISTRY OFF CACHE BOOL "Disables search in user / system package registries")set(CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY ON CACHE BOOL "Disables search in user package registries")diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txtindex e598487753d..ea3a63c232b 100644--- a/src/bindings/python/wheel/CMakeLists.txt+++ b/src/bindings/python/wheel/CMakeLists.txt@@ -158,7 +158,6 @@ add_custom_command(TARGET ie_wheelPOST_BUILDCOMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_SOURCE_DIR}/build_${pyversion}" || ${CMAKE_COMMAND} -E true # w/a this ensures the command always succeeds- DEPENDS ${openvino_wheel_path}WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"COMMENT "Cleaning up Python wheel build for wheel ${openvino_wheel_name}"VERBATIM)