Hi all.<br>I&#39;m using the swig module for building a java wrapper to my library.<br>Here&#39;s the problematic code in the relevant CMakeLists.txt:<br>#####<br>SET(CMAKE_SWIG_OUTDIR org/my/lib)<br>SET(CMAKE_SWIG_FLAGS &quot;-package 
org.my.lib&quot;)<br>####<br><br>Both directives are properly parsed. However, this generates something like this in the command line (linux):<br>/usr/bin/swig-1.3 -java -package\ org.my.lib -outdir org/my/lib mylib.i<br>
<br>This gives me error, since SWIG complains about the escaped space just after &#39;-package&#39;! I solved the same kind of problem with &#39;-outdir&#39; by using CMAKE_SWIG_OUTDIR. But now I don&#39;t know how to workaround with &#39;-package&#39;. Moreover, this seems to me a more general issue, I suppose I can be faced with in other contexts.
<br><br>Any hints?<br>Bests,<br>Antonio, Fabio Di Narzo.<br><br>$ cmake --version<br>cmake version 2.4-patch 6<br><br>