UseSWIG: Change the library suffix to 'dylib' for C# on macOS
When testing on macOS, the command swig_add_library("mytarget")
creates a library libmytarget.so
instead of libmytarget.dylib
. Subsequently, the library is not found by dotnet and the swig-generated DllImport
statements.
With the supplied PR, everything works correctly.
Tested with cmake 3.24.0
.
Fixes: #23967 (closed)
Topic-rename: UseSWIG-macos-csharp-suffix
Edited by Brad King