CMake: Only add Werror if WARNINGS_ARE_ERRORS is set


Change-Id: I2c545c0bdcdfb64f44511afbf6f560bc533e9a14
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commit1c4680748dfa6cf399fe3672371d4d10e7da70d2
parentaa30729c3404079518089e32c5798c01687a44f3
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeTue, 18 Nov 2025 14:15:04 +0100