Re: [CMake] What is the most reliable way to concatanate files on Windows?

2009-11-01 Thread Hendrik Sattler
Am Sonntag 01 November 2009 05:25:03 schrieb Alan W. Irwin: The PLplot build system needs to contatanate some files together. The cross-platform way we do this right now is to use cat if it is available (which handles the Unix case) and otherwise if the Windows cmd or command are available

[CMake] Reruning cmake and environment variables

2009-11-01 Thread elizabeta petreska
Hello I am using Windows ansd Cmake 2.6. I am invoking CMake from command window which has set some environment variables. The environment variables are visible only the during the lifetime of the command window. I am using the environment variables in many places through my cmakelists.txt ,

Re: [CMake] Reruning cmake and environment variables

2009-11-01 Thread Michael Wild
On 1. Nov, 2009, at 16:27 , elizabeta petreska wrote: Hello I am using Windows ansd Cmake 2.6. I am invoking CMake from command window which has set some environment variables. The environment variables are visible only the during the lifetime of the command window. I am using the

Re: [CMake] What is the most reliable way to concatanate files on Windows?

2009-11-01 Thread Alan W. Irwin
On 2009-11-01 12:10+0100 Hendrik Sattler wrote: Am Sonntag 01 November 2009 05:25:03 schrieb Alan W. Irwin: The PLplot build system needs to contatanate some files together. The cross-platform way we do this right now is to use cat if it is available (which handles the Unix case) and

Re: [CMake] add_executable with -D

2009-11-01 Thread Mike Jackson
You need to use the add_defintions() command Sent from my iPod Mike Jackson On Nov 1, 2009, at 13:12, Alex H aditya15...@hotmail.com wrote: Usually using g++ I can do the following: g++ -D DEBUG main.cpp how can I add the similar function of -D DEBUG in CMake? I tried to read the

Re: [CMake] add_executable with -D

2009-11-01 Thread Alex H
How can I do an if else statement in CMake?? Do I need to use options? From: mike.jack...@bluequartz.net To: aditya15...@hotmail.com Subject: Re: [CMake] add_executable with -D Date: Sun, 1 Nov 2009 13:59:15 -0500 CC: cmake@cmake.org You need to use the add_defintions() command Sent from

Re: [CMake] add_executable with -D

2009-11-01 Thread Pau Garcia i Quiles
Hello, $ cmake --help-command IF if(expression) # then section. COMMAND1(ARGS ...) COMMAND2(ARGS ...) ... elseif(expression2) # elseif section. COMMAND1(ARGS ...) COMMAND2(ARGS ...) ...

Re: [CMake] add_executable with -D

2009-11-01 Thread Alex H
Sorry what I was trying to ask is, how do I run CMake with an option that I have defined in the option section ofCMakeLists.txt? Date: Sun, 1 Nov 2009 22:47:36 +0100 Subject: Re: [CMake] add_executable with -D From: pgqui...@elpauer.org To: aditya15...@hotmail.com CC: cmake@cmake.org