Re: [CMake] regular expression help: set a variable for all source file

2006-03-01 Thread Grant Tang
OOOPS, wrong email. will post it again tomorrow. Sorry.  On 3/1/06, William A. Hoffman <[EMAIL PROTECTED]> wrote: Is this on the right list?At 09:01 PM 3/1/2006, Grant Tang wrote:>I just add a new target 'test' to EMAN2 makefile. Which is used to call all >the python unit test file. All these test

Re: [CMake] Marking libraries (yes: maRking)

2006-03-01 Thread Brad King
Brandon J. Van Every wrote: Rodrigo Madera wrote: I have a project that build a lot of different libraries (like Boost does, but it's not Boost) with configuration markings and build options. I want to build: MyLib.lib: the release library MyLib-D.libdebug library MyLib-A.lib non un

[CMake] regular expression help: set a variable for all source file

2006-03-01 Thread Grant Tang
I just add a new target 'test' to EMAN2 makefile. Which is used to call all the python unit test file. All these test files will be installed to EMAN2/test/rt directory. So you can run unit test in one command: $make test after your make install. Or you could go to EMAN2/test/rt directory run

[CMake] CTest newbie

2006-03-01 Thread Vignesh M.P.N.
Hi all   I am a CMake newbie and new to build process too. So I felt the documentation insufficient.   I am basically trying to use CTest as a client to Dart without using CMake. I just want to initially try this with a simple HelloWorld.java.   So here is what I’ve done. My project f

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread David Cole
Sorry.. nmake *variables*, not nmake *targets* I knew I shouldn't have clicked send on that one... Time to logoff for the day or something. William A. Hoffman wrote: At 03:51 PM 3/1/2006, David Cole wrote: This was fixed in CVS CMake, nmake now allows - in the target name.

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 22:31 schrieb Brad King: > Prakash Punnoor wrote: > > Am Mittwoch März 1 2006 21:06 schrieb Brad King: > >>Prakash Punnoor wrote: > >>Supporting this in CMake is tricky. The problem we face that libtool > >>does not is supporting Windows compilers (correct me if I'm wrong I

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 22:13 schrieb William A. Hoffman: > At 03:51 PM 3/1/2006, David Cole wrote: > >>This was fixed in CVS CMake, nmake now allows - in the target name. > > > >Just to clarify, CMake allows "-" in CMake target names... Then it > > translates it into something else that is accept

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Brad King
Prakash Punnoor wrote: Am Mittwoch März 1 2006 21:06 schrieb Brad King: Prakash Punnoor wrote: Supporting this in CMake is tricky. The problem we face that libtool does not is supporting Windows compilers (correct me if I'm wrong I have not checked this). Not that I know of. Thinking again,

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread William A. Hoffman
At 03:51 PM 3/1/2006, David Cole wrote: >>This was fixed in CVS CMake, nmake now allows - in the target name. >> >Just to clarify, CMake allows "-" in CMake target names... Then it translates >it into something else that is accepted by nmake. "-" is still not allowed >inside of an nmake makefi

Re: [CMake] Marking libraries (yes: maRking)

2006-03-01 Thread Brandon J. Van Every
Rodrigo Madera wrote: I have a project that build a lot of different libraries (like Boost does, but it's not Boost) with configuration markings and build options. I want to build: MyLib.lib: the release library MyLib-D.libdebug library MyLib-A.lib non unicode version MyLib-AD.lib n

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread David Cole
This was fixed in CVS CMake, nmake now allows - in the target name. Just to clarify, CMake allows "-" in CMake target names... Then it translates it into something else that is accepted by nmake. "-" is still not allowed inside of an nmake makefile. ;) __

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread William A. Hoffman
At 03:30 PM 3/1/2006, Prakash Punnoor wrote: >While we're at it: You probably want to disallow "-" in target names, as it is >not portable, as I experienced. At least nmake in Windows complains and >errors out. This was fixed in CVS CMake, nmake now allows - in the target name. -Bill ___

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 21:06 schrieb Brad King: > Prakash Punnoor wrote: > Supporting this in CMake is tricky. The problem we face that libtool > does not is supporting Windows compilers (correct me if I'm wrong I have > not checked this). Not that I know of. Thinking again, it might be that the

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Brad King
Prakash Punnoor wrote: Actually I don't know. :-) Or perhaps I confused its behaviour while building a project as such. Here at least it is no problem if you have some libtool libs declared within the porject and link them either static or shared with executables or libs within the same project

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Brad King
Prakash Punnoor wrote: Am Mittwoch März 1 2006 19:20 schrieb William A. Hoffman: At 11:29 AM 3/1/2006, Prakash Punnoor wrote: (That's why libtool makes one's life so much easier as you don't have to think about such problems anymore...) What does libtool do to help here? If you use libtoo

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 20:04 schrieb Brad King: > Prakash Punnoor wrote: > > Am Mittwoch März 1 2006 19:20 schrieb William A. Hoffman: > >>At 11:29 AM 3/1/2006, Prakash Punnoor wrote: > >>>(That's why libtool makes one's life so much easier as you don't have to > >>>think about such problems anymo

[CMake] Marking libraries (yes: maRking)

2006-03-01 Thread Rodrigo Madera
I have a project that build a lot of different libraries (like Boost does, but it's not Boost) with configuration markings and build options. I want to build: MyLib.lib: the release library MyLib-D.libdebug library MyLib-A.lib non unicode version MyLib-AD.lib nin unicode debug library

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 19:20 schrieb William A. Hoffman: > At 11:29 AM 3/1/2006, Prakash Punnoor wrote: > >(That's why libtool makes one's life so much easier as you don't have to > > think about such problems anymore...) > > What does libtool do to help here? If you use libtool libs *all* the ti

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread William A. Hoffman
At 11:29 AM 3/1/2006, Prakash Punnoor wrote: >(That's why libtool makes one's life so much easier as you don't have to think >about such problems anymore...) What does libtool do to help here? -Bill ___ CMake mailing list CMake@cmake.org http://www.c

RE: [CMake] Writing a list variable to file

2006-03-01 Thread Ian . Appru
Ah - was missing the quotes round CONTENTS variable thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad King Sent: 01 March 2006 14:42 To: Appru, Ian Cc: cmake@cmake.org Subject: Re: [CMake] Writing a list variable to file [EMAIL PROTECTED] wrote

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 17:19 schrieb Filipe Sousa: > Prakash Punnoor wrote: > > Am Mittwoch März 1 2006 16:29 schrieb Filipe Sousa: > > > > Not really helpfull regarding CMake, but are you doing something > > non-portable, like linking the static lib into an shared lib (or libtool > > lib)? This >

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prakash Punnoor wrote: > Am Mittwoch März 1 2006 16:29 schrieb Filipe Sousa: > > Not really helpfull regarding CMake, but are you doing something > non-portable, > like linking the static lib into an shared lib (or libtool lib)? This You're right,

Re: [CMake] Adding -fPIC to static libraries

2006-03-01 Thread Prakash Punnoor
Am Mittwoch März 1 2006 16:29 schrieb Filipe Sousa: > For some reason that I don't understand I have to add -fPIC to static > libraries on AMD64 otherwise I get this message: > relocation R_X86_64_32 against `a local symbol' recompile with -fPIC Not really helpfull regarding CMake, but are you doi

[CMake] Adding -fPIC to static libraries

2006-03-01 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For some reason that I don't understand I have to add -fPIC to static libraries on AMD64 otherwise I get this message: relocation R_X86_64_32 against `a local symbol' recompile with -fPIC If I add -fPIC to CMAKE_C/CXX_FLAGS in the top level CMakeLists

Re: [CMake] Writing a list variable to file

2006-03-01 Thread Brad King
[EMAIL PROTECTED] wrote: Hi Brad 1) works well - thanks the MESSAGE cmd won't print it which made me doubt it was working 2) doesn't work since the ; seps are removed before the regular expression is applied STRING(REGEX REPLACE ";" "\n" CONTENTS "${CONTENTS}") -Brad ___

RE: [CMake] Writing a list variable to file

2006-03-01 Thread Ian . Appru
Hi Brad 1) works well - thanks the MESSAGE cmd won't print it which made me doubt it was working 2) doesn't work since the ; seps are removed before the regular expression is applied - Ian -Original Message- From: Brad King [mailto:[EMAIL PROTECTED] Sent: 01 March 2006 14:13 To: A

Re: [CMake] Writing a list variable to file

2006-03-01 Thread Brad King
[EMAIL PROTECTED] wrote: Is there a recommended way of writing a variable containing a list to a file - so that each ; sep item ends up on a different line? There are several approaches. Here are two: 1.) Build the contents of the variable with newlines instead of semicolons, or transform th

Re: [CMake] Installing: creating a command in a rule.

2006-03-01 Thread Brad King
Rodrigo Madera wrote: Forgive me if this is simple, but I've been in the documentation pages long enough... I have a library being built and in the installation I need to copy the generated library file along with the export of the subversion working directory. The library I copied with: INSTA

[CMake] Writing a list variable to file

2006-03-01 Thread Ian . Appru
Title: Writing a list variable to file Hi, Is there a recommended way of writing a variable containing a list to a file - so that each ; sep item ends up on a different line? I tried various solutions and the code below works but is extremely slow ~1min to write 700 lines! >FOREACH(VAR ${

Re: [CMake] CVS CMake: makefile install rule broken

2006-03-01 Thread Zachary Pincus
Thanks, the Makefile problem is indeed fixed. Zach On Feb 28, 2006, at 6:54 AM, Brad King wrote: Zachary Pincus wrote: Just a heads up in case this isn't known (let me know if I should file a bug): I just checked out CMake from CVS and found that it generates invalid makefiles on my sy

[CMake] Installing: creating a command in a rule.

2006-03-01 Thread Rodrigo Madera
Forgive me if this is simple, but I've been in the documentation pages long enough... I have a library being built and in the installation I need to copy the generated library file along with the export of the subversion working directory. The library I copied with: INSTALL_TARGETS("" mylib) Ri