On 01/26/2011 04:48 AM, Johan Björk wrote:
> I didn't try using VERBATIM, but since it fails even when having an
> extra slash for the WORKING_DIRECTORY parameter, I'm not sure if it
> would help.
> 
> In my case it was not required, but for copying files, it can make a 
> difference.
> 
> cp file foo/bar <- creates the file bar, or copies into the directory
> bar if it exists
> cp file foo/bar/ <- fails if bar does not exist.
> 
> I can't even imagine what anyone would be using the current behavior
> for, it would only concatenate two following COMMAND invocations...

It's the DEPENDS and WORKING_DIRECTORY options that get converted to
backslashes. Fixed both, added tests, and added well-defined behavior
for a relative-path working directory:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7befc007
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=88548a45

-Brad
_______________________________________________
cmake-developers mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to