From d5b56dd15cd351ce678dc0edf63c72a49ffc5ae3 Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Mon, 14 Nov 2016 18:02:09 +0100 Subject: UseSWIG: Add USE_BUILD_SHARED_LIBS to accepted values for the TYPE arg The new signature is SWIG_ADD_LIBRARY( [TYPE ] LANGUAGE SOURCES ... ) --- Modules/UseSWIG.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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( -# [TYPE ] +# [TYPE ] # LANGUAGE # SOURCES ... # ) @@ -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}) -- cgit v0.12