[CMake] $ENV{HOSTNAME}
Gonzalo Garramuño
ggarra at advancedsl.com.ar
Wed Nov 21 08:56:14 EST 2007
Salvatore Iovene wrote:
>
> A bug? Thanks.
>
Nope.
$ echo $HOSTNAME
aura1
$ sh -c "echo \$HOSTNAME"
$ bash -c "echo \$HOSTNAME"
aura1
Basically, HOSTNAME is a variable that is set by some shells like bash
only, but cmake for speed and consistency runs commands using the most
basic unix shell (ie. sh), which does not set that variable by default.
--
Gonzalo Garramuño
ggarra at advancedsl.com.ar
AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
More information about the CMake
mailing list