Refactor Qt project file into compiler specific subfiles

Encapsulating compiler specific options in a separate file
makes it easier to reason about what is going to happen on
a specific qmake call.

clang-msvc and msvc are separate because they don't support
exactly the same compiler switches.
This commit is contained in:
Vitaly
2019-02-21 18:48:53 +01:00
committed by username223
parent adcbb474c5
commit 4b48d051c8
6 changed files with 37 additions and 27 deletions
@@ -0,0 +1,9 @@
include(common-msvc.pri)
#win32-clang-msvc is unable to correctly build the first time
#with warnings as errors on. There seems to be an issue with the moc_predefs.h
#file not being built correctly when /WX is on. Until the issue is fixed,
#win32-clang-msvc is built without /WX.
#clang-msvc does not enable the c++17 flag with qmake's c++1z flag.
QMAKE_CXXFLAGS += /std:c++17