summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2016-11-10 16:01:38 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2016-11-11 07:14:10 (GMT)
commitec1d585c43b60a8f9c7b3cb1636e831915b37eb0 (patch)
treeaef0db5238b739f2ebd908f46d18da3e3b4de7b7
parent4c5b3c1ceaec319163fa26a8e55eb669f11ee8a5 (diff)
downloadCMake-ec1d585c43b60a8f9c7b3cb1636e831915b37eb0.zip
CMake-ec1d585c43b60a8f9c7b3cb1636e831915b37eb0.tar.gz
CMake-ec1d585c43b60a8f9c7b3cb1636e831915b37eb0.tar.bz2
UseSWIG: Do not set PREFIX property for SHARED and STATIC lua 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 8373fbd..0e00506 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -294,7 +294,9 @@ macro(SWIG_ADD_LIBRARY name)
set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".jnilib")
endif ()
elseif ("${swig_lowercase_language}" STREQUAL "lua")
- set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
+ if("${_SAM_TYPE}" STREQUAL "MODULE")
+ set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
+ endif()
elseif ("${swig_lowercase_language}" STREQUAL "python")
# this is only needed for the python case where a _modulename.so is generated
set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")