diff options
author | Brad King <brad.king@kitware.com> | 2013-11-26 14:36:22 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-11-26 14:36:22 (GMT) |
commit | 0ccc53573419132434528ca287a6bc03e2632768 (patch) | |
tree | a70526092b526339ddc3141158142c80125b67b6 /Modules | |
parent | 48e476c3f4baeccf17327560f34c8c403551f266 (diff) | |
parent | acc59e55e12c1979735ba42569411892e215afba (diff) | |
download | CMake-0ccc53573419132434528ca287a6bc03e2632768.zip CMake-0ccc53573419132434528ca287a6bc03e2632768.tar.gz CMake-0ccc53573419132434528ca287a6bc03e2632768.tar.bz2 |
Merge topic 'UseSWIG-fix13814'
acc59e5 UseSWIG: Handle a dll name different than module name (#13814)
Diffstat (limited to 'Modules')
-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 4329053..dbacf6c 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() |