Commit d5b56dd1 authored by Daniele E. Domenichelli's avatar Daniele E. Domenichelli
Browse files

UseSWIG: Add USE_BUILD_SHARED_LIBS to accepted values for the TYPE arg

The new signature is

  SWIG_ADD_LIBRARY(<name>
                   [TYPE <SHARED|MODULE|STATIC|USE_BUILD_SHARED_LIBS>]
                   LANGUAGE <language>
                   SOURCES <file>...
                   )
parent d608cfb6
Pipeline #35191 passed with stage
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# :: # ::
# #
# SWIG_ADD_LIBRARY(<name> # SWIG_ADD_LIBRARY(<name>
# [TYPE <SHARED|MODULE|STATIC>] # [TYPE <SHARED|MODULE|STATIC|USE_BUILD_SHARED_LIBS>]
# LANGUAGE <language> # LANGUAGE <language>
# SOURCES <file>... # SOURCES <file>...
# ) # )
...@@ -248,6 +248,8 @@ macro(SWIG_ADD_LIBRARY name) ...@@ -248,6 +248,8 @@ macro(SWIG_ADD_LIBRARY name)
if(NOT DEFINED _SAM_TYPE) if(NOT DEFINED _SAM_TYPE)
set(_SAM_TYPE MODULE) set(_SAM_TYPE MODULE)
elseif("${_SAM_TYPE}" STREQUAL "USE_BUILD_SHARED_LIBS")
unset(_SAM_TYPE)
endif() endif()
swig_module_initialize(${name} ${_SAM_LANGUAGE}) swig_module_initialize(${name} ${_SAM_LANGUAGE})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment