[Cmake-commits] [cmake-commits] hoffman committed syntax.html 1.2 1.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Mar 12 10:01:15 EDT 2008
Update of /cvsroot/CMake/CMakeWeb/HTML
In directory public:/mounts/ram/cvs-serv9149
Modified Files:
syntax.html
Log Message:
ENH: update syntax more
Index: syntax.html
===================================================================
RCS file: /cvsroot/CMake/CMakeWeb/HTML/syntax.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** syntax.html 11 Mar 2008 00:54:16 -0000 1.2
--- syntax.html 12 Mar 2008 14:01:13 -0000 1.3
***************
*** 100,104 ****
<p> Each command is evaluated in the order that it appears in the CMakeLists file. The commands
have the form <br />
! <code>command (args...)</code></p>
<p> where command is the name of the command, macro or function, and args is a white-space separated list of
arguments. (Arguments with embedded white-space should be double quoted.) CMake is case
--- 100,104 ----
<p> Each command is evaluated in the order that it appears in the CMakeLists file. The commands
have the form <br />
! <pre> command (args...)</pre></p>
<p> where command is the name of the command, macro or function, and args is a white-space separated list of
arguments. (Arguments with embedded white-space should be double quoted.) CMake is case
***************
*** 176,181 ****
# prints out
${VAR} =
! hello
! world
</pre>
Standard C like escapes are also supported.
--- 176,181 ----
# prints out
${VAR} =
! hello
! world
</pre>
Standard C like escapes are also supported.
***************
*** 186,189 ****
--- 186,206 ----
hello world
</pre>
+ A string literal is only a string literal if the charactor preceding the quote is white space.
+ For example:
+ <pre>
+ message(hell"o") -> prints hell"o"
+ message(hell"o") -> prints hell"o"
+ message(hell\"o\") -> prints hell"o"
+ </pre>
+ However, quotes must still be balanced, as this is an error:
+ <pre>
+ message(hell"o) -> produces this error:
+ Parse error. Function missing ending ")".
+ Instead found unterminated string with text "o)
+ ".
+
+ message(hell\"o) -> prints hell"o
+ </pre>
+
<h2>Regular Expressions</h2>
***************
*** 211,214 ****
--- 228,233 ----
</ul>
<p> </p>
+ This page was inspired by the <a href="http://www.kitware.com/products/cmakebook.html">Mastering CMake</a> book, and from Kernigh's personal wiki describing the scripting language of CMake:
+ <a href="http://kernigh.pbwiki.com/CMake">Kernigh's wiki</a>
</div>
</div>
More information about the Cmake-commits
mailing list