summaryrefslogtreecommitdiffstats
path: root/Tests/LinkDirectory
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-03-03 19:08:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-03-03 21:51:34 (GMT)
commitda2361ffb35799319abca6f7c3138c916685fb2d (patch)
tree603d91719eeeadf9ae12db307f3dbfaba02f1651 /Tests/LinkDirectory
parent47d197745a44b20ee65edd0e3223464a43b3ee55 (diff)
downloadCMake-da2361ffb35799319abca6f7c3138c916685fb2d.zip
CMake-da2361ffb35799319abca6f7c3138c916685fb2d.tar.gz
CMake-da2361ffb35799319abca6f7c3138c916685fb2d.tar.bz2
while: Restore tolerance of condition error
Since commit 880ca66b51 (Fix: `while()` can silently ignore incorrect condition, 2021-08-09, v3.22.0-rc1~238^2~4) we correctly reject the code set(paren "(") while(${paren}) endwhile() However, rejecting it breaks compatibility with projects that used such code accidentally. In CMake 3.21 and below, any error in the condition was ignored because the `false` result exited the loop first. Restore tolerance of the error for now. A policy will be needed to make it an error later. Note that the same condition with `if` was always correctly rejected. Fixes: #22524 Issue: #23296 Co-authored-by: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Tests/LinkDirectory')
0 files changed, 0 insertions, 0 deletions