mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
The final assertion opened a generator expression and never closed it. file(GENERATE) passes such a string through verbatim rather than diagnosing it, and the result is a non-empty string, so an assertion that tests only for truth cannot fail. That case has been vacuous since it was added. Close the expression, and compare each result against the exact value the operation returns rather than against its truthiness, so that a malformed expression is reported instead of quietly satisfying the check.