The message displayed to the user says they need "at least Visual Studio 2019", but in reality the minimum is now 2022. Amends 9a409295c7cfe74b4fb6b1892f4ff86d4f3c23f3 Pick-to: 6.9 6.8 Change-Id: Idaedd72d114b994fddd2ba7574fb7a45ca0a3e85 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
17 lines
603 B
CMake
17 lines
603 B
CMake
# Copyright (C) 2024 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
function(qt_internal_check_msvc_versions)
|
|
if(NOT MSVC OR QT_NO_MSVC_MIN_VERSION_CHECK)
|
|
return()
|
|
endif()
|
|
set(min_msvc_version "1930")
|
|
if(MSVC_VERSION VERSION_LESS min_msvc_version)
|
|
message(FATAL_ERROR
|
|
"Qt requires at least Visual Studio 2022 (MSVC ${min_msvc_version} or newer), "
|
|
"you're building against version ${MSVC_VERSION}. "
|
|
"You can turn off this version check by setting QT_NO_MSVC_MIN_VERSION_CHECK to ON."
|
|
)
|
|
endif()
|
|
endfunction()
|