[CMake] [PATCH] SEPARATE_ARGUMENTS: don't replace escaped spaces

Alexander Neundorf a.neundorf-work at gmx.net
Sun Jul 16 16:17:39 EDT 2006


Hi,

the attached patch changes the behaviour of SEPARATE_ARGUMENTS() so that it doesn't replace escaped spaces anymore.
Input: 
/usr/include /opt/kde/include /opt/blub\ blah/include
Former result:
/usr/include;/opt/kde/include;/opt/blub\;blah/include
New result:
/usr/include;/opt/kde/include;/opt/blub blah/include

At first it replaces all unescaped spaces whtih semicolons, and after that it replaces all escaped spaces with normal spaces. Does this second step make sense ?

At least it helped in my case when calling a cmake script which needs a list of include directories.
Trying to open "/opt/blah\ blub/include/test.h" didn't work from the called cmake script, opening  "/opt/blah blub/include/test.h" did work.

Bye
Alex


-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmSeparateArgumentsCommand.cxx.patch
Type: text/x-diff
Size: 931 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060716/943c746f/cmSeparateArgumentsCommand.cxx.bin


More information about the CMake mailing list