gui.pro: disable precompiled headers for older VS versions
This commit is contained in:
parent
0302ab217a
commit
57201cf8d5
10
gui/gui.pro
10
gui/gui.pro
|
@ -103,8 +103,18 @@ contains(LINKCORE, [yY][eE][sS]) {
|
|||
include($$PWD/../lib/lib.pri)
|
||||
}
|
||||
|
||||
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 \
|
||||
|
|
Loading…
Reference in New Issue