commit | cec6f980181d9ca88ff53f0b1626713ed98a3369 | [log] [tgz] |
---|---|---|
author | Raul Tambre <raul@tambre.ee> | Mon May 29 17:18:55 2023 +0300 |
committer | Brad King <brad.king@kitware.com> | Tue May 30 11:03:09 2023 -0400 |
tree | 82c53afc69426441453aa40bc4f8b68223523ccc | |
parent | b50caaf96a33dd57ff6699cbb296131be0296ce9 [diff] |
CMakeDetermineCompilerABI: Avoid removing the flag after -Werror The matching became too eager after commit 079ea66468 (CMakeDetermineCompilerABI: Handle NVCC-style -Werror flags, 2020-10-04, v3.19.0-rc1~45^2). When -Werror was specified without a value we would eat the following flag. Prevent this by disallowing "-" as the first character of the flag's value. Fixes: 079ea66468a6ffe0b02c3d6622bc0230fdf455b0 See-also: https://discourse.cmake.org/t/8230