Skip to content

UseSWIG swig_add_library output file not using CMAKE_SHARED_LIBRARY_PREFIX for android

I created a project that generates a static library (c++), and a swig shared library (csharp).

When cross-compiling for android, the generated static library is correctly named libTargetName.a but the generated swig library is incorrectly named TargetName.so instead of the expected libTargetName.so for android architecture.

I suspect UseSWIG is not using CMAKE_SHARED_LIBRARY_PREFIX to generate the file name (which, if printed during cmake generation, correctly outputs lib)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information