<br><div><span class="gmail_quote">2007/4/10, David Cole <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>>:</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> </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 <<a href="mailto:antonio.fabio@gmail.com">
antonio.fabio@gmail.com</a>> wrote:<br>> Hi all.<br>> I'm using the swig module for building a java wrapper to my library.<br>> Here's the problematic code in the relevant CMakeLists.txt:<br>> #####
<br>> SET(CMAKE_SWIG_OUTDIR org/my/lib)<br>> SET(CMAKE_SWIG_FLAGS "-package org.my.lib")<br>> ####<br>><br>> Both directives are properly parsed. However, this generates something like<br>> 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<br>> '-package'! I solved the same kind of problem with '-outdir' by using
<br>> CMAKE_SWIG_OUTDIR. But now I don't know how to workaround with '-package'.<br>> Moreover, this seems to me a more general issue, I suppose I can be faced<br>> 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>><br>> _______________________________________________<br>> CMake mailing list
<br>> <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>><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