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