Hi list,

It is quite possible that the following problem arises because I
misunderstant custom targets, but it worked under cmake-2.4 (various
patch levels, various UNIX-ish operating systems).

Attached is a mini-project which triggers an error due to the way that
 COMMANDs are parsed by ADD_CUSTOM_TARGET(). My custom command is
essentially saying "if there is no symlink, create it", like this:

$ test -L foobar || ln -s /Users/rolo/soft/check foobar

Under cmake-2.6 at make time, this gets translated to

$ test -L foobar "||" ln -s /Users/rolo/soft/check foobar
                 ^^^^
Where the quotes around the or-operator break the command and make
bails out with "/bin/sh: line 1: test: too many arguments".

What's the correct way of specifying such a command? I did specify the
VERBATIM option to ADD_CUSTOM_TARGET()...

Or is there an altogether better way to create symlinks?

Thanks in advance,
Roland


-- 
Roland Philippsen
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE84C528D
http://poftwaresatent.net/             skype: poftwaresatent

Attachment: check.tgz
Description: GNU Zip compressed data

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to