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                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to