Re: [CMake] Using gmake with windows CL compiler?

2007-11-21 Thread Bill Hoffman
You can also use the GNU make included here: http://unxutils.sourceforge.net/ This is really just a (small) set of unix tools running natively under Windows, using native Windows paths, etc. IMO this is the easiest way to get GNU make for Windows. Don't use the GNU make for Windows at steve

Re: [CMake] Using gmake with windows CL compiler?

2007-11-21 Thread Alexander Neundorf
On Wednesday 21 November 2007, Daniel wrote: > > On Nov 21, 2007 8:58 AM, Josef Karthauser <[EMAIL PROTECTED]> wrote: > >> Does anyone here have gnumake working with the windows CL compiler? > >> We're using nmake targets, and I tried instead to use gmake, however > >> there were lots of problems

Re: [CMake] QtDialog isn't installed?

2007-11-21 Thread Brandon Van Every
On Nov 21, 2007 10:27 AM, Hendrik Sattler <[EMAIL PROTECTED]> wrote: > Quoting Bill Hoffman <[EMAIL PROTECTED]>: > >> > > What we plan to do is use a pure BSD license, and remove the extra line > > that is currently in the CMake license. That way there is no trouble. > > With the qt exception, you

RE: [CMake] Using gmake with windows CL compiler?

2007-11-21 Thread Josef Karthauser
> > The mailing list archives say don't use Cygwin gmake for this. > > http://www.cmake.org/pipermail/cmake/2006-August/010617.html > > > I've done it, just make sure you are using MinGW GNU Make and not > Cygwin GNU > Make. Also you will eventually run into the command line that is too > log bug,

Re: [CMake] QtDialog isn't installed?

2007-11-21 Thread Hendrik Sattler
Quoting Bill Hoffman <[EMAIL PROTECTED]>: Brandon Van Every wrote: On Nov 20, 2007 2:59 PM, Brandon Van Every <[EMAIL PROTECTED]> wrote: On Nov 20, 2007 2:41 PM, Brandon Van Every <[EMAIL PROTECTED]> wrote: I think in the real world, Kitware can distribute QtDialog under CMake's license, and

Re: [CMake] Get CMAKE to use ksh instead of bash

2007-11-21 Thread Brandon Van Every
On Nov 21, 2007 10:16 AM, Nutty OpenBSD User Dave <[EMAIL PROTECTED]> wrote: > Is there any way to get CMake to use ksh as the shell? For CMake's own internal processing? Why? If you just want to call a shell - any shell - and have it do something, use EXECUTE_PROCESS or ADD_CUSTOM_TARGET. Che

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread David Cole
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 <[EMAIL PROTECTED]> wrote: > > On Nov 21, 2007 5:14 PM, David Cole <[EMAIL PROTECTED]> wrote: > > The CMake SITE_NAME command does this in a shell

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Salvatore Iovene
On Nov 21, 2007 5:14 PM, David Cole <[EMAIL PROTECTED]> 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 F

[CMake] Get CMAKE to use ksh instead of bash

2007-11-21 Thread Nutty OpenBSD User Dave
Is there any way to get CMake to use ksh as the shell? Thanks. Dave Feustel ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread David Cole
The CMake SITE_NAME command does this in a shell / platform independent way... See output of "cmake --help-command SITE_NAME" On 11/21/07, James Bigler <[EMAIL PROTECTED]> wrote: > > > > Salvatore Iovene wrote: > > On Nov 21, 2007 4:46 PM, James Bigler <[EMAIL PROTECTED]> wrote: > > shell-in

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread James Bigler
Salvatore Iovene wrote: On Nov 21, 2007 4:46 PM, James Bigler <[EMAIL PROTECTED]> wrote: shell-independent way. Maybe there's a way to execute the `hostname` command? Ok, I see now. HOSTNAME is a shell variable, but not an environment variable. Check this thread here: http://lists.freebsd.or

Re: [CMake] Using gmake with windows CL compiler?

2007-11-21 Thread Daniel
On Nov 21, 2007 8:58 AM, Josef Karthauser <[EMAIL PROTECTED]> wrote: Does anyone here have gnumake working with the windows CL compiler? We're using nmake targets, and I tried instead to use gmake, however there were lots of problems due to backslashes instead of slashes, etc. I'd appreciate h

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread James Bigler
shell-independent way. Maybe there's a way to execute the `hostname` command? Ok, I see now. HOSTNAME is a shell variable, but not an environment variable. Check this thread here: http://lists.freebsd.org/pipermail/freebsd-questions/2004-July/052424.html So, is there another way I could get the

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Alberto Luaces
El Wednesday 21 November 2007 15:40:16 Alberto Luaces escribió: > > So, is there another way I could get the hostname in CMake? > > Thanks. > > uname -n ? Sorry, I didn't notice you asked for CMake. ___ CMake mailing list CMake@cmake.org http://www.cmake

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Alberto Luaces
El Wednesday 21 November 2007 15:27:53 Salvatore Iovene escribió: > So, is there another way I could get the hostname in CMake? > Thanks. uname -n ? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Using gmake with windows CL compiler?

2007-11-21 Thread Brandon Van Every
On Nov 21, 2007 8:58 AM, Josef Karthauser <[EMAIL PROTECTED]> wrote: > > Does anyone here have gnumake working with the windows CL compiler? We're > using nmake targets, and I tried instead to use gmake, however there were > lots of problems due to backslashes instead of slashes, etc. I'd > appr

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Salvatore Iovene
On Nov 21, 2007 4:02 PM, Salvatore Iovene <[EMAIL PROTECTED]> wrote: > > > On Nov 21, 2007 3:56 PM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote: > > > Salvatore Iovene wrote: > > > > > > > > A bug? Thanks. > > > > > > > > > > Nope. > > > > > > $ echo $HOSTNAME > > > aura1 > > > > > > $ sh -c "echo

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Salvatore Iovene
> On Nov 21, 2007 3:56 PM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote: > > Salvatore Iovene wrote: > > > > > > A bug? Thanks. > > > > > > > Nope. > > > > $ echo $HOSTNAME > > aura1 > > > > $ sh -c "echo \$HOSTNAME" > > > > $ bash -c "echo \$HOSTNAME" > > aura1 > > > > Basically, HOSTNAME is a vari

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Salvatore Iovene
On Nov 21, 2007 3:56 PM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote: > 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 li

[CMake] Using gmake with windows CL compiler?

2007-11-21 Thread Josef Karthauser
Does anyone here have gnumake working with the windows CL compiler? We're using nmake targets, and I tried instead to use gmake, however there were lots of problems due to backslashes instead of slashes, etc. I'd appreciate hearing from anyone who has got this working. Many thanks, Joe __

Re: [CMake] $ENV{HOSTNAME}

2007-11-21 Thread Gonzalo Garramuño
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

[CMake] $ENV{HOSTNAME}

2007-11-21 Thread Salvatore Iovene
Hi, notice the following code: [EMAIL PROTECTED]:/tmp/foo$ cat CMakeLists.txt MESSAGE(STATUS "HOSTNAME = $ENV{HOSTNAME}") MESSAGE(STATUS "USER = $ENV{USER}") MESSAGE(STATUS "HOME = $ENV{HOME}") And its output: [EMAIL PROTECTED]:/tmp/foo$ cmake . -- Check for working C compiler: /usr/bin/gcc -- C