diff --git a/ManiVault/CMakeLists.txt b/ManiVault/CMakeLists.txt index ec94a1672..11e9a4ae5 100644 --- a/ManiVault/CMakeLists.txt +++ b/ManiVault/CMakeLists.txt @@ -24,7 +24,7 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -if (NOT (MSVC AND MSVC_VERSION LESS_EQUAL 1929)) +if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND MSVC_VERSION LESS 1930)) set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS OFF)