summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2016-11-10 16:00:45 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2016-11-11 07:14:10 (GMT)
commit4c5b3c1ceaec319163fa26a8e55eb669f11ee8a5 (patch)
tree3e75c387e917a2aeb31dd98518412c4ddcade7e6
parentd0a9d8bbe60edfb7cf7569fe8162b17bba294182 (diff)
downloadCMake-4c5b3c1ceaec319163fa26a8e55eb669f11ee8a5.zip
CMake-4c5b3c1ceaec319163fa26a8e55eb669f11ee8a5.tar.gz
CMake-4c5b3c1ceaec319163fa26a8e55eb669f11ee8a5.tar.bz2
UseSWIG: Do not set NO_SONAME property for SHARED and STATIC libraries
-rw-r--r--Modules/UseSWIG.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index fe80938..8373fbd 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -274,7 +274,9 @@ macro(SWIG_ADD_LIBRARY name)
${_SAM_TYPE}
${swig_generated_sources}
${swig_other_sources})
- set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES NO_SONAME ON)
+ if("${_SAM_TYPE}" STREQUAL "MODULE")
+ set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES NO_SONAME ON)
+ endif()
string(TOLOWER "${_SAM_LANGUAGE}" swig_lowercase_language)
if ("${swig_lowercase_language}" STREQUAL "octave")
set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")