Merge topic 'UseSWIG-NO_SONAME'

f26147b8 UseSWIG: Enable NO_SONAME on swig modules (#14815)
This commit is contained in:
Brad King 2014-04-01 11:06:06 -04:00 committed by CMake Topic Stage
commit 09498984b1

View File

@ -200,6 +200,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 "")