Re: [cmake-developers] NMake and trailing directory separators in custom commands?

2011-01-27 Thread Brad King
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

Re: [cmake-developers] NMake and trailing directory separators in custom commands?

2011-01-26 Thread Johan Björk
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 director

Re: [cmake-developers] NMake and trailing directory separators in custom commands?

2011-01-25 Thread Brad King
On 01/25/2011 12:35 PM, Johan Björk wrote: > Hi everyone, > > I just started using the NMake generator, and ran into an issue that > is probably trivial to fix for someone who knows the generator code. > If one of the steps for the makefile contains a trailing directory > separator, it will escape

Re: [cmake-developers] NMake and trailing directory separators in custom commands?

2011-01-25 Thread David Cole
On Tue, Jan 25, 2011 at 12:35 PM, Johan Björk wrote: > Hi everyone, > > I just started using the NMake generator, and ran into an issue that > is probably trivial to fix for someone who knows the generator code. > If one of the steps for the makefile contains a trailing directory > separator, it w

[cmake-developers] NMake and trailing directory separators in custom commands?

2011-01-25 Thread Johan Björk
Hi everyone, I just started using the NMake generator, and ran into an issue that is probably trivial to fix for someone who knows the generator code. If one of the steps for the makefile contains a trailing directory separator, it will escape the newline and result in an invalid command. ie (Unt