diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-02 12:25:40 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-02 17:00:37 +0100 |
commit | d39b5f376db85a18b163e31bd25a8c9dc4a5292c (patch) | |
tree | 4e8ae1a0bc93e3aafeb0222c6b97621a68aff77c /coin | |
parent | d05da5f306c7c30616d33fe540e64dd2fee46924 (diff) |
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>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/instructions/prepare_building_env.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index 0cbc9c9cae..0e69bdf3e6 100644 --- a/coin/instructions/prepare_building_env.yaml +++ b/coin/instructions/prepare_building_env.yaml @@ -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 |