CMake: Fix -[no-]warnings-are-errors configure argument
The CMake build uses the WARNINGS_ARE_ERRORS variable, and the feature warnings_are_errors exists only in the qmake build. Change-Id: I1e548b30b210b3dd1b2f23041d490a981312f4ba Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
parent
077ea0c633
commit
84485dfad3
@ -541,6 +541,7 @@ endmacro()
|
||||
translate_boolean_input(precompile_header BUILD_WITH_PCH)
|
||||
translate_boolean_input(ccache QT_USE_CCACHE)
|
||||
translate_boolean_input(shared BUILD_SHARED_LIBS)
|
||||
translate_boolean_input(warnings_are_errors WARNINGS_ARE_ERRORS)
|
||||
translate_string_input(qt_namespace QT_NAMESPACE)
|
||||
translate_string_input(qt_libinfix QT_LIBINFIX)
|
||||
translate_string_input(qreal QT_COORD_TYPE)
|
||||
|
@ -76,8 +76,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
|
||||
| -ccache | -DQT_USE_CCACHE=ON | |
|
||||
| -make-tool <tool> | n/a | |
|
||||
| -mp | n/a | |
|
||||
| -warnings-are-errors | -DWARNINGS_ARE_ERRORS=ON or | |
|
||||
| | -DFEATURE_warnings_are_errors=ON | |
|
||||
| -warnings-are-errors | -DWARNINGS_ARE_ERRORS=ON | |
|
||||
| -silent | n/a | |
|
||||
| -sysroot <dir> | -DCMAKE_SYSROOT=<dir> | Should be provided by a toolchain file that's |
|
||||
| | | passed via -DCMAKE_TOOLCHAIN_FILE=<filename> |
|
||||
|
Loading…
x
Reference in New Issue
Block a user