[CMake] Re: Help getting -l and -L arguments from apr-config

2007-05-04 Thread Matthew Woehlke
Trevor Kellaway wrote: Hi, The following snippet will send the strings "1", "2" and "3" to the messages console, each of them on its own line: SET(FOO "1 2 3") STRING(REPLACE " " ";" FOO_LIST "${FOO}") FOREACH(item ${FOO_LIST}) MESSAGE(${item}) ENDFOREACH(item ${FOO_LIST}) The "M

[CMake] Re: CMake Digest, Vol 36, Issue 53

2007-05-04 Thread Gordon . Schumacher
"Trevor Kellaway" <[EMAIL PROTECTED]> wrote on Sun, 29 Apr 2007 22:05:57 +0100: # You can ignore the GenericBuildPrologue.cmake/GenericBuildEpilogue.cmake # related stuff, as this is my ported existing build world support, and is # a bit too specialized, although it may have the odd useful CMake t

Re: [CMake] how to avoid deletion of add_custom_commands generated files?

2007-05-04 Thread Alan W. Irwin
On 2007-05-04 11:53-0300 BrĂ¡ulio Oliveira wrote: Hello all, I'm creating a Qt4 based project using Cmake. I have some translations files which are gererated with the command: ADD_CUSTOM_COMMAND(OUTPUT ${tsfiles} COMMAND ${QT_LUPDATE_EXECUTABLE} ARGS

[CMake] how to avoid deletion of add_custom_commands generated files?

2007-05-04 Thread BrĂ¡ulio Oliveira
Hello all, I'm creating a Qt4 based project using Cmake. I have some translations files which are gererated with the command: ADD_CUSTOM_COMMAND(OUTPUT ${tsfiles} COMMAND ${QT_LUPDATE_EXECUTABLE} ARGS ${CMAKE_CURRENT_SOURCE_DIR} -ts ${tsfiles}

RE: [CMake] Thoughts on Cross-compiling with CMake

2007-05-04 Thread Kishore, Jonnalagadda (IE10)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Trevor Kellaway > Sent: Friday, May 04, 2007 6:14 PM > To: cmake@cmake.org > Subject: RE: [CMake] Thoughts on Cross-compiling with CMake > > Hi, > > > It is really nice to know that there is now acti

Re: [CMake] CMake for Opteron AMD

2007-05-04 Thread Bill Hoffman
Rahul Kulkarni wrote: Hello Bill, Thanks for the quick response. But is it a good idea to use 32-bit version on 64-bit system? Would it cause any problems to the applications if I build them with 32-bit CMake? The only time this is a problem is when you use loadable cmake modules. If you d

Re: [CMake] CMake for Opteron AMD

2007-05-04 Thread Eric Noulard
2007/5/4, Rahul Kulkarni <[EMAIL PROTECTED]>: Hello Bill, Thanks for the quick response. But is it a good idea to use 32-bit version on 64-bit system? Would it cause any problems to the applications if I build them with 32-bit CMake? I don't know for Windows platform but I did use 32bits CMake

RE: [CMake] CMake for Opteron AMD

2007-05-04 Thread Rahul Kulkarni
Hello Bill, Thanks for the quick response. But is it a good idea to use 32-bit version on 64-bit system? Would it cause any problems to the applications if I build them with 32-bit CMake? Thanks and Regards, // Rahul -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent:

Re: [CMake] setting LINK_DIRECTORIES depanding on debug/release build VS8

2007-05-04 Thread Bill Hoffman
Christoph John wrote: Hello, I am using CMake 2.4 patch 6 under Windows to generate makefiles for VS8. I am trying to set LINK_DIRECTORIES depending on the optimized or debug build of the project. I have not found a way to do this. my link libraries are under PATH/debug/*.lib and PATH/release/*

Re: [CMake] CMake for Opteron AMD

2007-05-04 Thread Bill Hoffman
Rahul Kulkarni wrote: Hello All, Do I need to build the CMake utility from the source code to use it on AMD Opteron? Because the one available on Windows is 32-bit installer. Here is my system configuration: AMD Opteron Microsoft Window Server 2003 R2 Standard x64 Edition Serv

RE: [CMake] Re: Help getting -l and -L arguments from apr-config

2007-05-04 Thread Trevor Kellaway
Hi, > The following snippet will send the strings "1", "2" and "3" > to the messages console, each of them on its own line: > > SET(FOO "1 2 3") > STRING(REPLACE " " ";" FOO_LIST "${FOO}") > FOREACH(item ${FOO_LIST}) > MESSAGE(${item}) > ENDFOREACH(item ${FOO_LIST}) The "Mastering C

RE: [CMake] Thoughts on Cross-compiling with CMake

2007-05-04 Thread Trevor Kellaway
Hi, > It is really nice to know that there is now active > development for supporting cross-compiling. May I also > suggest that it be made possible to make the generators aware > of this such that one could create a visual studio (and may > be eclipse) project with the cross-compiler settings

[CMake] CMake for Opteron AMD

2007-05-04 Thread Rahul Kulkarni
Hello All, Do I need to build the CMake utility from the source code to use it on AMD Opteron? Because the one available on Windows is 32-bit installer. Here is my system configuration: AMD Opteron Microsoft Window Server 2003 R2 Standard x64 Edition Service Pack1 Thanks and Rega

RE: [CMake] Thoughts on Cross-compiling with CMake

2007-05-04 Thread Kishore, Jonnalagadda (IE10)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alexander Neundorf > Sent: Monday, April 30, 2007 6:21 PM > To: cmake@cmake.org > Subject: Re: [CMake] Thoughts on Cross-compiling with CMake > > > > main CVS tree (I use Subversion) and this forum, I

Re: [CMake] Re: Help getting -l and -L arguments from apr-config

2007-05-04 Thread Thomas Christian Chust
Matthew Woehlke wrote: > [...] So I think I still have the same problem, how to take a string > that might look like '-lfoo -lbar -L"foo bar/thelib"' and split it > into '-lfoo', '-lbar' and '-L"foo bar/thelib". From there I can use > STRING to strip the flag and SET/LIST to build the needed varia

[CMake] setting LINK_DIRECTORIES depanding on debug/release build VS8

2007-05-04 Thread Christoph John
Hello, I am using CMake 2.4 patch 6 under Windows to generate makefiles for VS8. I am trying to set LINK_DIRECTORIES depending on the optimized or debug build of the project. I have not found a way to do this. my link libraries are under PATH/debug/*.lib and PATH/release/*.lib and have the same