'How to pass compiler argument with make?
With
QMAKE_CXXFLAGS += -W4
I'm trying to pass W4 to the compiler (Microsoft compiler of VS2019).
However, someway, Qt Creator is passing W3 afterwards and my W4 is overwritten. In the compile output panel I see something like:
cl -many -other parameters -W4 -and -more -W3 -and -others
How to deal with this?
Solution 1:[1]
QMAKE_CXXFLAGS_WARN_ON instead of QMAKE_CXXFLAGS sets the compiler warnings.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | 273K |
