Explorar o código

UseSWIG: Do not set PREFIX property for SHARED and STATIC lua libraries

Daniele E. Domenichelli %!s(int64=9) %!d(string=hai) anos
pai
achega
ec1d585c43
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Modules/UseSWIG.cmake

+ 3 - 1
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 "")