<br><div><span class="gmail_quote">2007/4/10, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
CMake is passing your double quoted string as a single arg. You should<br>be able to just eliminate the double quotes in this case and it should<br>get passed as multiple space-separated args when used...</blockquote><div>
<br>TNX! That works perfectly :-)<br>
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HTH,<br>David<br><br><br>On 4/10/07, Antonio, Fabio Di Narzo &lt;<a href="mailto:antonio.fabio@gmail.com">
antonio.fabio@gmail.com</a>&gt; wrote:<br>&gt; Hi all.<br>&gt; I&#39;m using the swig module for building a java wrapper to my library.<br>&gt; Here&#39;s the problematic code in the relevant CMakeLists.txt:<br>&gt; #####
<br>&gt; SET(CMAKE_SWIG_OUTDIR org/my/lib)<br>&gt; SET(CMAKE_SWIG_FLAGS &quot;-package org.my.lib&quot;)<br>&gt; ####<br>&gt;<br>&gt; Both directives are properly parsed. However, this generates something like<br>&gt; this in the command line (linux):
<br>&gt; /usr/bin/swig-1.3 -java -package\ org.my.lib -outdir org/my/lib mylib.i<br>&gt;<br>&gt; This gives me error, since SWIG complains about the escaped space just after<br>&gt; &#39;-package&#39;! I solved the same kind of problem with &#39;-outdir&#39; by using
<br>&gt; CMAKE_SWIG_OUTDIR. But now I don&#39;t know how to workaround with &#39;-package&#39;.<br>&gt; Moreover, this seems to me a more general issue, I suppose I can be faced<br>&gt; with in other contexts.<br>&gt;<br>
&gt; Any hints?<br>&gt; Bests,<br>&gt; Antonio, Fabio Di Narzo.<br>&gt;<br>&gt; $ cmake --version<br>&gt; cmake version 2.4-patch 6<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; CMake mailing list
<br>&gt; <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>&gt;<br></blockquote></div><br><br clear="all">
<br>-- <br>Antonio, Fabio Di Narzo<br>Ph.D. student at<br>Department of Statistical Sciences<br>University of Bologna, Italy