[cmake-developers] [CMake 0014040]: SWIG doesn't support -pacakge
Mantis Bug Tracker
mantis at public.kitware.com
Mon Mar 25 16:24:44 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14040
======================================================================
Reported By: Javier
Assigned To:
======================================================================
Project: CMake
Issue ID: 14040
Category: Modules
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-03-25 16:24 EDT
Last Modified: 2013-03-25 16:24 EDT
======================================================================
Summary: SWIG doesn't support -pacakge
Description:
I'm trying to generate java wrappers for a C++ interface. I need the wrappers to
be in a specific package. This is achieved by passing -package <package> to
swig.
When I set SWIG_FLAGS to "-package com.something", swigs yields "Unrecognized
option -package com.something"
The reason for this is that in build.cmake, the space is escaped:
...
&& /usr/local/bin/swig -java -package\ com.something ...
Steps to Reproduce:
find_package(JNI REQUIRED)
find_package(SWIG REQUIRED)
include(${SWIG_USE_FILE})
include_directories(${JNI_INCLUDE_DIRS})
set_source_files_properties(example.i PROPERTIES CPLUSPLUS ON)
set_source_files_properties(example.i PROPERTIES SWIG_FLAGS "-package
com.something")
swig_add_module(example java example.i example.cpp)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-03-25 16:24 Javier New Issue
======================================================================
More information about the cmake-developers
mailing list