[Cmake] breaking up long strings

Brad King brad.king at kitware.com
Wed Sep 8 13:11:12 EDT 2004


Wheeler, Frederick W (Research) wrote:

> Thanks for the pointer.  Unfortunately, this leaves the new newlines in the
> string.

Just put the Tcl-specific backslashes in the string with one level of 
escaping for CMake syntax:

SET (EXPECTED_BUILDS " \\
{cs.rpi.edu FreeBSD-4.9-gcc-2.95.4} \\
{cs.rpi.edu FreeBSD-4.9-gcc-2.95.4-static} \\
{cs.rpi.edu FreeBSD-4.9-gcc-3.3} \\
"
)

-Brad



More information about the Cmake mailing list