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

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(it

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] 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