[CMake] spaces in command line options

Antonio, Fabio Di Narzo antonio.fabio at gmail.com
Tue Apr 10 09:33:30 EDT 2007


2007/4/10, David Cole <david.cole at kitware.com>:
>
> CMake is passing your double quoted string as a single arg. You should
> be able to just eliminate the double quotes in this case and it should
> get passed as multiple space-separated args when used...


TNX! That works perfectly :-)



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



-- 
Antonio, Fabio Di Narzo
Ph.D. student at
Department of Statistical Sciences
University of Bologna, Italy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070410/d14a320f/attachment.html


More information about the CMake mailing list