summaryrefslogtreecommitdiffstats
path: root/Help/policy/CMP0043.rst
diff options
context:
space:
mode:
authorJuuso "Linda" Lapinlampi <linda@lindalap.fi>2019-02-11 19:06:02 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-11 19:41:51 (GMT)
commit572b4fd85b5987858ee6ce6fd7381c3cfd6720e9 (patch)
tree927768c499ae021eb8c226df5c997856d2fe7271 /Help/policy/CMP0043.rst
parent6f23321d405930241fa431cfda7650f2993f0c19 (diff)
downloadCMake-572b4fd85b5987858ee6ce6fd7381c3cfd6720e9.zip
CMake-572b4fd85b5987858ee6ce6fd7381c3cfd6720e9.tar.gz
CMake-572b4fd85b5987858ee6ce6fd7381c3cfd6720e9.tar.bz2
Help: Fix elseif/endif typo
In CMake 3.13.x, we had this evaluation for if() conditions: if(a) elseif(b) else(a) endif(a) The sensible intention of the change in commit c2efb3efcd (Help: Revise docs on Scripting Commands, 2018-10-16, v3.14.0-rc1~505^2) was: > "endif", "endfunction" etc: Explain that the argument is optional and > maintained for compatibility only Instead of "endif", it ended up being written to the documentation as "elseif" by the commit author (oops) to if()'s page. if(a) elseif(a!?) else() endif(a?) Truthfully, endif()'s parameter should be an optional verbatim repeat and not elseif()'s. If it wasn't, elseif() would be described to be the same as if(). The rightful intended description is: if(a) elseif(b) else() endif() Fix that typo.
Diffstat (limited to 'Help/policy/CMP0043.rst')
0 files changed, 0 insertions, 0 deletions