From 544204654de6c93fe9202b41ff060b07c2ad7a6e Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Sat, 16 Dec 2023 12:19:10 -0500 Subject: [PATCH] Hack fix for broken --gen=vs --- AMBuildScript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index e00bdce74a..0d6e771f08 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -258,8 +258,8 @@ class SMConfig(object): def configure_cxx(self, cxx): if cxx.family == 'msvc': - if cxx.version < 1914: - raise Exception('Only MSVC 2017 15.7 and later are supported, full C++17 support is required.') + if cxx.version < 1914 and builder.options.generator != 'vs': + raise Exception(f'Only MSVC 2017 15.7 and later are supported, full C++17 support is required. ({str(cxx.version)} < 1914)') elif cxx.family == 'gcc': if cxx.version < 'gcc-9': raise Exception('Only GCC versions 9 or later are supported, full C++17 support is required.')