[CMake] Sending Swig options to compiler

Alan W. Irwin irwin at beluga.phys.uvic.ca
Tue Jul 15 17:19:37 EDT 2008


On 2008-07-15 15:49-0500 Gerrick Bivins wrote:

> Hello,
> I¹m trying to add an extra option to the swig compile line (-package
> <packagename>) while generating java wrappers for my project.
> I¹m running into a problem when using:
> SET(PACKAGE_NAME test)
> SET_SOURCE_FILES_PROPERTIES( ${INTERFACE_FILES} PROPERTIES CPLUSPLUS ON )
> SET( CMAKE_SWIG_FLAGS "-package ${PACKAGE_NAME}" )

Try dropping the quotes, i.e.,

SET(CMAKE_SWIG_FLAGS -package ${PACKAGE_NAME})

That form works for the PLplot project.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
-------------- next part --------------
_______________________________________________

CMake mailing list

CMake at cmake.org

http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list