diff options
author | Brad King <brad.king@kitware.com> | 2016-11-15 14:26:13 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-11-15 14:26:13 (GMT) |
commit | 2b7cc7644063778b26e60ab4f07bbfe06b539157 (patch) | |
tree | bbe05b9ef550e10ad56cb0932aef287d18ae3fe4 | |
parent | 06209c4ce2d75d2e7eff16312d570b7f411e413e (diff) | |
parent | d5b56dd15cd351ce678dc0edf63c72a49ffc5ae3 (diff) | |
download | CMake-2b7cc7644063778b26e60ab4f07bbfe06b539157.zip CMake-2b7cc7644063778b26e60ab4f07bbfe06b539157.tar.gz CMake-2b7cc7644063778b26e60ab4f07bbfe06b539157.tar.bz2 |
Merge topic 'UseSWIG_USE_BUILD_SHARED_LIBS'
d5b56dd1 UseSWIG: Add USE_BUILD_SHARED_LIBS to accepted values for the TYPE arg
-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}) |