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

2007-05-07 Thread Thomas Christian Chust
Bill Hoffman wrote: [...] I think you are going to have to use regular expressions. [...] Hello, if you want some code that can correctly identify matching quotation marks, regular expressions don't have enough expressive power to describe that behaviour (you would need something like PEGs

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

2007-05-07 Thread Matthew Woehlke
Thomas Christian Chust wrote: Bill Hoffman wrote: I think you are going to have to use regular expressions. if you want some code that can correctly identify matching quotation marks, regular expressions don't have enough expressive power to describe that behaviour (you would need something

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

2007-05-05 Thread Bill Hoffman
Matthew Woehlke wrote: 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

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 -Lfoo bar/thelib' and split it into '-lfoo', '-lbar' and '-Lfoo bar/thelib. From there I can use STRING to strip the flag and SET/LIST to build the needed variables.

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 CMake book

[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 Mastering CMake

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

2007-05-03 Thread Matthew Woehlke
Alan W. Irwin wrote: On 2007-05-02 17:49-0500 Matthew Woehlke wrote: I am trying to fix kdesdk's broken attempt to link to subversion (it croaks when apr is not in a standard include path). I *do* have apr-config accessible so I can use that to get the right paths, but I'm having some trouble