Skip to content

Commit

Permalink
[docs] fix cmake code-block warning
Browse files Browse the repository at this point in the history
This will unblock the llvm-sphinx-buildbot, which is currently failing due
to a warning being treated as error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276100 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rengolin committed Jul 20, 2016
1 parent 0aa76a9 commit f12c36b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/CMakePrimer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f12c36b

Please sign in to comment.