mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
UseSWIG: Handle a dll name different than module name (#13814)
This commit is contained in:
parent
9e952fbf18
commit
acc59e55e1
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user