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
Fix msvc version to cover v143 toolset (#28300)
Oleg Pipikin0d40ed106746
diff --git a/cmake/developer_package/compile_flags/os_flags.cmake b/cmake/developer_package/compile_flags/os_flags.cmakeindex 4ee3b7d7d09..e70de45b941 100644--- a/cmake/developer_package/compile_flags/os_flags.cmake+++ b/cmake/developer_package/compile_flags/os_flags.cmake@@ -114,7 +114,7 @@ macro(ov_check_compiler_supports_sve flags)set(CMAKE_REQUIRED_FLAGS "${CMAKE_CXX_FLAGS_INIT} ${flags}")# Check if the source code compiles with the given flags for C++- CHECK_CXX_SOURCE_COMPILES("${SVE_CODE}" CXX_HAS_SVE)+ CHECK_CXX_SOURCE_COMPILES("${SVE_CODE}" CXX_HAS_SVE)# If the compilation test is successful, set appropriate variables indicating supportif(CXX_HAS_SVE)@@ -278,7 +278,7 @@ macro(ov_arm_sve_optimization_flags flags)else()if(AARCH64)set(${flags} -O2)-+# Add flag for SVE if supportedif(CXX_SVE_FOUND)list(APPEND ${flags} -march=armv8-a+sve)@@ -451,8 +451,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")# Workaround for an MSVC compiler issue in some versions of Visual Studio 2022.# The issue involves a null dereference to a mutex. For details, refer to link https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710- if(MSVC AND MSVC_VERSION GREATER_EQUAL 1930 AND MSVC_VERSION LESS 1941)- ov_add_compiler_flags(/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)+ if(MSVC AND MSVC_VERSION GREATER_EQUAL 1930)+ ov_add_compiler_flags(/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)endif()if(AARCH64 AND NOT MSVC_VERSION LESS 1930)