[CMake] CMake toolchain file changing shared library loading name [SOLVED]

Дмитрий Дороговцев dorogovtsev.dmitriy at gmail.com
Fri Jul 19 07:38:20 EDT 2013


2013/7/19 Nils Gladitz <nilsgladitz at gmail.com>

>  When the library is being created by CMake itself I would have expected
> a SONAME by default:
> "Default is to set "soname" on all shared libraries and modules as long as
> the platform supports it."
>
> Is armLinux a valid value for CMAKE_SYSTEM_NAME?
> Quick glimpse at some documentation suggests you may want "Linux" instead
> since there are no armLinux platform files.
>
> I assume that may also set the proper flags for SONAME to work by
> default(?)
>
> Nils
>

You are right again :) So my general mistake was to provide custom-made
value for
CMAKE_SYSTEM_NAME, while preset one works fine, allowing to set correct name
of a shared library and thus making linker to setup correct dependency.
Thank you a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130719/ea34adaa/attachment.htm>


More information about the CMake mailing list