diff options
author | Daniele E. Domenichelli <ddomenichelli@drdanz.it> | 2016-11-14 17:02:09 (GMT) |
---|---|---|
committer | Daniele E. Domenichelli <ddomenichelli@drdanz.it> | 2016-11-14 17:02:12 (GMT) |
commit | d5b56dd15cd351ce678dc0edf63c72a49ffc5ae3 (patch) | |
tree | 1181392b4663207c32ad0ecd5b510beef747aba7 /Modules | |
parent | d608cfb6bf6b93add793c64b40787307be10059a (diff) | |
download | CMake-d5b56dd15cd351ce678dc0edf63c72a49ffc5ae3.zip CMake-d5b56dd15cd351ce678dc0edf63c72a49ffc5ae3.tar.gz CMake-d5b56dd15cd351ce678dc0edf63c72a49ffc5ae3.tar.bz2 |
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>...
)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/UseSWIG.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 0e00506..c5912f8 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -10,7 +10,7 @@ # :: # # SWIG_ADD_LIBRARY(<name> -# [TYPE <SHARED|MODULE|STATIC>] +# [TYPE <SHARED|MODULE|STATIC|USE_BUILD_SHARED_LIBS>] # LANGUAGE <language> # SOURCES <file>... # ) @@ -248,6 +248,8 @@ macro(SWIG_ADD_LIBRARY name) if(NOT DEFINED _SAM_TYPE) set(_SAM_TYPE MODULE) + elseif("${_SAM_TYPE}" STREQUAL "USE_BUILD_SHARED_LIBS") + unset(_SAM_TYPE) endif() swig_module_initialize(${name} ${_SAM_LANGUAGE}) |