da62168
From f12c36b2bc2e1db86098c181b88b8003c595e63c Mon Sep 17 00:00:00 2001
da62168
From: Renato Golin <renato.golin@linaro.org>
da62168
Date: Wed, 20 Jul 2016 09:47:09 +0000
da62168
Subject: [PATCH] [docs] fix cmake code-block warning
da62168
da62168
This will unblock the llvm-sphinx-buildbot, which is currently failing due
da62168
to a warning being treated as error.
da62168
da62168
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276100 91177308-0d34-0410-b5e6-96231b3b80d8
da62168
---
da62168
 docs/CMakePrimer.rst | 8 ++++----
da62168
 1 file changed, 4 insertions(+), 4 deletions(-)
da62168
da62168
diff --git a/docs/CMakePrimer.rst b/docs/CMakePrimer.rst
da62168
index 0347790..1e3a09e 100644
da62168
--- a/docs/CMakePrimer.rst
da62168
+++ b/docs/CMakePrimer.rst
da62168
@@ -246,11 +246,11 @@ In general CMake if blocks work the way you'd expect:
da62168
 .. code-block:: cmake
da62168
 
da62168
   if(<condition>)
da62168
-    .. do stuff
da62168
+    message("do stuff")
da62168
   elseif(<condition>)
da62168
-    .. do other stuff
da62168
+    message("do other stuff")
da62168
   else()
da62168
-    .. do other other stuff
da62168
+    message("do other other stuff")
da62168
   endif()
da62168
 
da62168
 The single most important thing to know about CMake's if blocks coming from a C
da62168
@@ -265,7 +265,7 @@ The most common form of the CMake ``foreach`` block is:
da62168
 .. code-block:: cmake
da62168
 
da62168
   foreach(var ...)
da62168
-    .. do stuff
da62168
+    message("do stuff")
da62168
   endforeach()
da62168
 
da62168
 The variable argument portion of the ``foreach`` block can contain dereferenced
da62168
-- 
da62168
2.5.5
da62168