UseSWIG uses "wrong" library suffix `.so` instead of `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 small change in PR https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7659, everything works correctly.
Tested with cmake `3.24.0`.
issue