Use latest Windows SDK by default (#24326)
### Details: - *item1* - *...* ### Tickets: - *ticket-id*
This commit is contained in:
parent
748a751bf3
commit
818d282c01
|
|
@ -33,6 +33,14 @@ if(POLICY CMP0135)
|
|||
cmake_policy(SET CMP0135 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0149)
|
||||
# VS generator looks for most recent Windows SDK, ignoring
|
||||
# CMAKE_SYSTEM_VERSION and allowing override by WindowsSDKVersion
|
||||
# environment variable. New in 3.27. This is to allow override
|
||||
# in the Windows CI builds.
|
||||
cmake_policy(SET CMP0149 NEW)
|
||||
endif()
|
||||
|
||||
project(OpenVINO DESCRIPTION "OpenVINO toolkit")
|
||||
|
||||
find_package(OpenVINODeveloperScripts REQUIRED
|
||||
|
|
|
|||
|
|
@ -223,6 +223,8 @@ set(CMAKE_POLICY_DEFAULT_CMP0111 NEW)
|
|||
set(CMAKE_POLICY_DEFAULT_CMP0127 NEW)
|
||||
# CMake 3.24+ :prefers to set the timestamps of all extracted contents to the time of the extraction
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0135 NEW)
|
||||
# CMake 3.27+ :Visual Studio Generators select latest Windows SDK by default.
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0149 NEW)
|
||||
|
||||
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "Don't warn about obsolete cmake versions in 3rdparty")
|
||||
set(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION ON CACHE BOOL "Warn about absolute paths in destination")
|
||||
|
|
|
|||
Loading…
Reference in New Issue