Hi, it seems that cmake doesn't properly escape the commandlines for custom commands. I'm adding a list of strings which include whitespace and also parenthesis "()" as arguments to a custom command. Additionally this custom command is running a target built by the same project.
Unfortunately CMake only escapes the whitespace, but doesn't escape the parenthesis. Hence invoking the command aborts with a /bin/sh: Syntax error: Bad function name Trying to solve this by quoting the individual arguments using \" doesn't help as cmake still adds a \ before any whitespace. This leads to wrong arguments being given to the actual command and hence it doesn't behave as it should. So anybody got another idea how to get these arguments through properly? BTW: Using VERBATIM doesn't help either (I didn't expect it anyway, but was worth a try). Andreas -- You will experience a strong urge to do good; but it will pass. _______________________________________________ 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