mirror of https://github.com/qt/qtbase.git
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 2019 (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()
|