coin: Add feature to enable warnings as errors

Pick-to: 6.2 5.15
Change-Id: If770f3e416674173316d3ef052c195070e28ede6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2021-11-02 12:25:40 +01:00
parent d05da5f306
commit d39b5f376d

View File

@ -340,3 +340,13 @@ instructions:
property: host.os
equals_value: Linux
# Enable warnings are errors
- type: Group
instructions:
- type: AppendToEnvironmentVariable
variableName: CONFIGURE_ARGS
variableValue: " -DWARNINGS_ARE_ERRORS=ON"
enable_if:
condition: property
property: features
contains_value: WarningsAreErrors