diff options
author | Julien Schueller <schueller@phimeca.com> | 2013-11-24 16:54:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-25 13:32:13 (GMT) |
commit | acc59e55e12c1979735ba42569411892e215afba (patch) | |
tree | 76cd4fe5bea09c9d6c99cb9125d2243167b09b9c /Modules/UseSWIG.cmake | |
parent | 9e952fbf18bddec90b874d7b0139a6ca3b78f0c9 (diff) | |
download | CMake-acc59e55e12c1979735ba42569411892e215afba.zip CMake-acc59e55e12c1979735ba42569411892e215afba.tar.gz CMake-acc59e55e12c1979735ba42569411892e215afba.tar.bz2 |
UseSWIG: Handle a dll name different than module name (#13814)
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 00f3e21..f957399 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -68,6 +68,10 @@ macro(SWIG_MODULE_INITIALIZE name language) set(SWIG_MODULE_${name}_REAL_NAME "_${name}") elseif("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "PERL") set(SWIG_MODULE_${name}_EXTRA_FLAGS "-shadow") + elseif("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "CSHARP") + # This makes sure that the name used in the generated DllImport + # matches the library name created by CMake + set(SWIG_MODULE_${name}_EXTRA_FLAGS "-dllimport;${name}") endif() endmacro() |