diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-07-20 09:47:09 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-07-20 09:47:09 +0000 |
commit | f12c36b2bc2e1db86098c181b88b8003c595e63c (patch) | |
tree | 75befe943b4c176390e8fb9634ba0283c11f2a2c /docs/CMakePrimer.rst | |
parent | 0aa76a9edf3e41880fe87f3586a52c60d7f40be4 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CMakePrimer.rst')
-rw-r--r-- | docs/CMakePrimer.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/CMakePrimer.rst b/docs/CMakePrimer.rst index 034779022142..1e3a09e4d98a 100644 --- a/docs/CMakePrimer.rst +++ b/docs/CMakePrimer.rst @@ -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 |