summaryrefslogtreecommitdiff
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorJulien Schueller <schueller@phimeca.com>2014-03-20 09:57:38 +0100
committerBrad King <brad.king@kitware.com>2014-04-01 10:48:13 -0400
commitf26147b8716adfbc46d93df0b05c7cde0c9413f4 (patch)
treec36a7b24d616a43a06109a6d208bba9b21f9220c /Modules/UseSWIG.cmake
parentf039a3a78e58f5ab2724704294513d7c25f0510c (diff)
downloadcmake-f26147b8716adfbc46d93df0b05c7cde0c9413f4.tar.gz
UseSWIG: Enable NO_SONAME on swig modules (#14815)
Swig modules are plugins and do not need the SONAME field set.
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r--Modules/UseSWIG.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 4ae6f813ad..9347687b2a 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -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 "")