MantisBT - CMake
View Issue Details
0014815CMakeModulespublic2014-03-19 15:202016-06-06 16:40
Nico Schlömer 
jschueller 
normaltweakalways
closedfixed 
linux
CMake 2.8.12.2 
 
0014815: UseSWIG: NO_SONAME
When generating a library via SWIG, it will typically be a plugin of some sort, e.g., a Python module. This is exactly the use case for NO_SONAME as documented on http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:NO_SONAME. [^]

Consequently, the macro SWIG_ADD_MODULE in UseSWIG.cmake should make it possible (or even the default setting) to add NO_SONAME.
No tags attached.
Issue History
2014-03-19 15:20Nico SchlömerNew Issue
2014-03-19 15:26Brad KingNote Added: 0035440
2014-03-31 04:14jschuellerAssigned To => jschueller
2014-03-31 04:14jschuellerStatusnew => assigned
2014-03-31 04:21jschuellerNote Added: 0035561
2014-03-31 04:22jschuellerSeverityminor => tweak
2014-03-31 04:22jschuellerReproducibilityhave not tried => always
2014-03-31 04:22jschuellerCategory(No Category) => Modules
2014-03-31 04:22jschuellerOS Version => linux
2014-04-01 03:48jschuellerNote Edited: 0035561bug_revision_view_page.php?bugnote_id=35561#r1426
2014-04-01 03:49jschuellerStatusassigned => resolved
2014-04-01 10:49Brad KingNote Added: 0035604
2014-10-06 10:33Robert MaynardNote Added: 0036962
2014-10-06 10:33Robert MaynardStatusresolved => closed
2016-06-06 16:40Brad KingResolutionopen => fixed

Notes
(0035440)
Brad King   
2014-03-19 15:26   
It is currently possible to do it like this:

 swig_add_module(mymod ...)
 set_property(TARGET ${SWIG_MODULE_mymod_REAL_NAME} PROPERTY NO_SONAME 1)

but having a builtin option would be nice too.
(0035561)
jschueller   
2014-03-31 04:21   
(edited on: 2014-04-01 03:48)
You're right, added by default:
http://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=dddb721 [^]
J.

(0035604)
Brad King   
2014-04-01 10:49   
Revised commit message:

 UseSWIG: Enable NO_SONAME on swig modules
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f26147b8 [^]
(0036962)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.