UseSWIG: Enable NO_SONAME on swig modules (#14815)

Swig modules are plugins and do not need the SONAME field set.
This commit is contained in:
Julien Schueller 2014-03-20 09:57:38 +01:00 committed by Brad King
parent f039a3a78e
commit f26147b871
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ macro(SWIG_ADD_MODULE name language)
MODULE
${swig_generated_sources}
${swig_other_sources})
set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES NO_SONAME ON)
string(TOLOWER "${language}" swig_lowercase_language)
if ("${swig_lowercase_language}" STREQUAL "octave")
set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")