MantisBT - CMake
View Issue Details
0013772CMakeCMakepublic2012-12-03 02:272014-06-02 08:37
hsor001 
jschueller 
normalminoralways
closedfixed 
CMake 2.8.10.2 
CMake 3.0 
0013772: UseSWIG.cmake does not handle relative paths with parent directories
When using swig with relative paths that contain parent directories the generated location of the cxx file is not set properly.
Use swig to wrap a python module where the interface file is in a sibling directory to the CMakeLists.txt file:

set(interface_src ../interfaces/lib.i)

Try configuring and building this swig module with a build directory anywhere other than a sibling directory.
No tags attached.
has duplicate 0013042closed jschueller UseSWIG.cmake: subdirectory for generated files is not created 
has duplicate 0013029closed jschueller Use of SWIG fails for out-of-source builds, if the swig interface file is not placed in same directory as CMakeLists.txt 
has duplicate 0006107closed jschueller UseSWIG.cmake severely broken 
related to 0013173closed jschueller Swig module can't handle absolute path 
related to 0014459closed jschueller SWIG_ADD_MODULE does not create sub directory 
? relative-useswig-paths.cmake (3,598) 2012-12-03 02:28
https://public.kitware.com/Bug/file/4581/relative-useswig-paths.cmake
Issue History
2012-12-03 02:27hsor001New Issue
2012-12-03 02:28hsor001File Added: relative-useswig-paths.cmake
2012-12-03 02:29hsor001Note Added: 0031797
2012-12-03 07:50Brad KingAssigned To => Mathieu Malaterre
2012-12-03 07:50Brad KingStatusnew => assigned
2013-11-25 08:24Brad KingAssigned ToMathieu Malaterre => jschueller
2013-11-25 08:28Brad KingRelationship addedrelated to 0013173
2013-11-25 08:29Brad KingRelationship addedrelated to 0014459
2013-11-25 09:12jschuellerNote Added: 0034547
2013-11-25 09:12jschuellerStatusassigned => resolved
2013-11-25 09:12jschuellerFixed in Version => CMake 3.0
2013-11-25 09:12jschuellerResolutionopen => fixed
2013-11-26 03:07jschuellerRelationship addedhas duplicate 0013042
2013-11-26 03:07jschuellerRelationship addedhas duplicate 0013029
2013-11-26 03:08jschuellerRelationship addedhas duplicate 0006107
2014-06-02 08:37Robert MaynardNote Added: 0036029
2014-06-02 08:37Robert MaynardStatusresolved => closed

Notes
(0031797)
hsor001   
2012-12-03 02:29   
relative-useswig-paths.cmake this file should be called relative-useswig-paths.patch
(0034547)
jschueller   
2013-11-25 09:12   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=276e3735 [^]
(0036029)
Robert Maynard   
2014-06-02 08:37   
Closing resolved issues that have not been updated in more than 4 months.