[CMake] $ENV{HOSTNAME}

David Cole david.cole at kitware.com
Wed Nov 21 10:18:16 EST 2007


You don't need to strip whitespace using the SITE_NAME command.
Try this:
SITE_NAME(mySite)
MESSAGE("mySite='${mySite}'")

On 11/21/07, Salvatore Iovene <salvatore.iovene+cmake at googlemail.com> wrote:
>
> On Nov 21, 2007 5:14 PM, David Cole <david.cole at kitware.com> wrote:
> > The CMake SITE_NAME command does this in a shell / platform independent
> > way...
> >
> > See output of "cmake --help-command SITE_NAME"
>
> That doesn't mention stripping whitespaces at all.
>
> --
> Salvatore Iovene
> http://www.iovene.com/
> Key Fingerprint: 5647 944D D5AD 2E87 00B4  7D54 2864 359D FF20 16D8
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071121/b8c601fe/attachment-0001.html


More information about the CMake mailing list