gui.pro: disable precompiled headers for older VS versions

This commit is contained in:
firewave 2020-09-13 23:06:45 +02:00
parent 0302ab217a
commit 57201cf8d5
1 changed files with 12 additions and 2 deletions

View File

@ -103,8 +103,18 @@ contains(LINKCORE, [yY][eE][sS]) {
include($$PWD/../lib/lib.pri)
}
CONFIG += precompile_header
PRECOMPILED_HEADER = precompiled_qmake.h
win32-msvc* {
MSVC_VER = $$(VisualStudioVersion)
message($$MSVC_VER)
MSVC_VER_SPLIT = $$split(MSVC_VER, .)
MSVC_VER_MAJOR = $$first(MSVC_VER_SPLIT)
# doesn't compile with older VS versions - assume VS2019 (16.x) is the first working for now
!lessThan(MSVC_VER_MAJOR, 16) {
message("using precompiled header")
CONFIG += precompile_header
PRECOMPILED_HEADER = precompiled_qmake.h
}
}
HEADERS += aboutdialog.h \
application.h \