Re: [CMake] Complex command

2010-08-10 Thread Magnus Therning
On Fri, Aug 6, 2010 at 20:18, Ryan Pavlik wrote: >  On 8/6/10 1:12 PM, Magnus Therning wrote: >> >> I was trying to put something like this into a CMake file: >> >> add_custom_command( ... >>     COMMAND ... >>     COMMAND ([[ -f foo ]] || ln -sf foo bar); true >>     ) >> >> But CMake won't have

Re: [CMake] Complex command

2010-08-06 Thread Ryan Pavlik
On 8/6/10 1:12 PM, Magnus Therning wrote: I was trying to put something like this into a CMake file: add_custom_command( ... COMMAND ... COMMAND ([[ -f foo ]] || ln -sf foo bar); true ) But CMake won't have it. Skipping the sub-shell is all right with CMake: add_custom_command

[CMake] Complex command

2010-08-06 Thread Magnus Therning
I was trying to put something like this into a CMake file: add_custom_command( ... COMMAND ... COMMAND ([[ -f foo ]] || ln -sf foo bar); true ) But CMake won't have it. Skipping the sub-shell is all right with CMake: add_custom_command( ... COMMAND ... COMMAND [[ -f foo ]] |