CMake: Improve comment about how to disable warnings
Change-Id: I4367f2b585b7fdfaba2a815be885157a1db990cd Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
67dadc7e34
commit
df2aa08187
@ -1,6 +1,8 @@
|
||||
# Set warnings. All compilers except MSVC support -Wall -Wextra
|
||||
# Allow opting out by setting a QT_COMPILE_WARNINGS_OFF property on targets. This would be the
|
||||
# equivalent of qmake's CONFIG += warn_off.
|
||||
# Enable compiler warnings by default. All compilers except MSVC support -Wall -Wextra
|
||||
#
|
||||
# You can disable the warnings for specific targets (for instance containing 3rd party code)
|
||||
# by calling qt_disable_warnings(target). This will set the QT_COMPILE_OPTIONS_DISABLE_WARNINGS
|
||||
# property checked below, and is equivalent to qmake's CONFIG += warn_off.
|
||||
|
||||
set(_qt_compiler_warning_flags_on "")
|
||||
set(_qt_compiler_warning_flags_off "")
|
||||
|
Loading…
Reference in New Issue
Block a user