Skip to content

Commit 27683a2

Browse files
committed
Generated digidocPINVOKE.cs contained bad library name without lib prefix in macOS. This commit fixes the generated code to global::System.Runtime.InteropServices.DllImport("libdigidoc_csharp",...
WE2-1073 Signed-off-by: Sven Mitt <[email protected]>
1 parent a87ecb9 commit 27683a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ if(SWIG_FOUND)
236236
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/digidoc.py DESTINATION ${Python3_SITELIB})
237237
endif()
238238

239-
set(CMAKE_SWIG_FLAGS -namespace digidoc)
239+
set(CMAKE_SWIG_FLAGS -namespace digidoc -dllimport ${CMAKE_SHARED_LIBRARY_PREFIX}digidoc_csharp)
240240
set(CMAKE_SWIG_OUTDIR ${CMAKE_CURRENT_BINARY_DIR}/csharp)
241241
swig_add_library(digidoc_csharp LANGUAGE csharp SOURCES ../libdigidocpp.i)
242242
target_link_libraries(digidoc_csharp digidocpp digidocpp_util)

0 commit comments

Comments
 (0)