On 02/20/2012 03:15 PM, David Cole wrote:

Use:

  COMMAND ls -l

Not:

  COMMAND "ls -l"


Yes thanks, I started using the "" because I noticed that sometimes they are needed.
So suppose I want to split the options and the command, this:

set(myoptions one two three)
set(mycmd ls -l)

message(${mycmd} ${myoptions})

will produce
ls-lonetwothree

Which is not what I want, but with " I get even a more strange result:
message("${mycmd} ${myoptions}")

ls;-l one;two;three

and in the list command I don't see any way to simply concatenate two lists,
so how should I merge two different lists to produce a command?
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to