[Cmake] breaking up long strings

Andy Cedilnik andy.cedilnik at kitware.com
Wed Sep 8 11:43:32 EDT 2004


Hi Fred,

CMake 2.0 supports multiline strings. No need for \:

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}
...
")

On Wed, 2004-09-08 at 11:31, Wheeler, Frederick W (Research) wrote:
> Does CMake offer a way to spread long strings like this one over multiple
> lines?
> 
> 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}
> {esat.kuleuven.ac.be IRIX-6.5-CC-n32} {esat.kuleuven.ac.be
> Linux-2.6-gcc-3.4-O3} {esat.kuleuven.ac.be Linux64-2.6-gcc-3.4-O3}
> {esat.kuleuven.ac.be OSF1-V5.1-gcc-3.4} {crd.ge.com
> Solaris-2.8_gcc-3.0.4_profile_static} {crd.ge.com Win2k_bcc-5.5.1_Release}
> {esat.kuleuven.ac.be SunOS-5.8-gcc-3.4-O2} {esat.kuleuven.ac.be
> HP-UX-B.11.00-gcc-3.4-O1} {crd.ge.com
> Playstation2-Linux-2.2.1_gcc-2.95.2_-Wall_static} {crd.ge.com
> Cygwin-1.5.10_gcc-3.3.3_-Wall_-O2_static} {crd.ge.com
> Win2k_msvc-6.0sp5_Release} {crd.ge.com
> FreeBSD-5.0_gcc-3.2.1_-Wall_-O_shared} {crd.ge.com
> Linux-2.4.18_gcc-3.2_-Wall_profile_static} {crd.ge.com
> Linux-2.4.9_icc-8.0_-w1_-O2_shared} {crd.ge.com Win2k_msvc-7.0_Release}
> {nk.crd.ge.com Win2k_msvc-7.1_Release} {imorphics
> Win2k-msvc-6sp5-iMorphicsRelDeb} {imorphics Win2k-msvc-6sp5-Debug}
> {crd.ge.com MinGW-3.3_gcc-3.3.3_-Wall_-O2_static}")
> 
> Something like this?
> 
> 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}\




More information about the Cmake mailing list