[llvm] r276100 - [docs] fix cmake code-block warning

Renato Golin via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 02:47:09 PDT 2016


Author: rengolin
Date: Wed Jul 20 04:47:09 2016
New Revision: 276100

URL: http://llvm.org/viewvc/llvm-project?rev=276100&view=rev
Log:
[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.

Modified:
    llvm/trunk/docs/CMakePrimer.rst

Modified: llvm/trunk/docs/CMakePrimer.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMakePrimer.rst?rev=276100&r1=276099&r2=276100&view=diff
==============================================================================
--- llvm/trunk/docs/CMakePrimer.rst (original)
+++ llvm/trunk/docs/CMakePrimer.rst Wed Jul 20 04:47:09 2016
@@ -246,11 +246,11 @@ In general CMake if blocks work the way
 .. 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 ``fore
 .. code-block:: cmake
 
   foreach(var ...)
-    .. do stuff
+    message("do stuff")
   endforeach()
 
 The variable argument portion of the ``foreach`` block can contain dereferenced




More information about the llvm-commits mailing list