mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 03:46:06 +00:00
[docs] fix cmake code-block warning
This will unblock the llvm-sphinx-buildbot, which is currently failing due to a warning being treated as error. llvm-svn: 276100
This commit is contained in:
parent
e433cf7547
commit
10f8472771
@ -246,11 +246,11 @@ In general CMake if blocks work the way you'd expect:
|
||||
.. code-block:: cmake
|
||||
|
||||
if(<condition>)
|
||||
.. do stuff
|
||||
message("do stuff")
|
||||
elseif(<condition>)
|
||||
.. do other stuff
|
||||
message("do other stuff")
|
||||
else()
|
||||
.. do other other stuff
|
||||
message("do other other stuff")
|
||||
endif()
|
||||
|
||||
The single most important thing to know about CMake's if blocks coming from a C
|
||||
@ -265,7 +265,7 @@ The most common form of the CMake ``foreach`` block is:
|
||||
.. code-block:: cmake
|
||||
|
||||
foreach(var ...)
|
||||
.. do stuff
|
||||
message("do stuff")
|
||||
endforeach()
|
||||
|
||||
The variable argument portion of the ``foreach`` block can contain dereferenced
|
||||
|
Loading…
x
Reference in New Issue
Block a user