CMake ignores VERSION/SOVERSION/SONAME for shared libraries from assembly files exclusively
I have a project that generates a shared library from a set of pure assembler (.S
) files: http://github.com/RJVB/lzvn .
The resulting library was always called libFastCompression.so (or .dylib) despite specifying VERSION
and SOVERSION
properties, and on Mac it didn't have the full install path in its library ID. (this is using CMake 3.11.1)
Two workarounds:
- add a stub C file to the library
- set the library's LINKER_LANGUAGE property to
C
I consider this a bug because to the best of my knowledge the library properties in question are not dependent at all on the language(s) its sources are written in. And LINKER_LANGUAGE=C
is a lie, evidently.