[cmake-developers] Android platform file
Stephen Kelly
steveire at gmail.com
Tue Mar 4 11:38:00 EST 2014
Brad King wrote:
> On 03/04/2014 11:08 AM, Stephen Kelly wrote:
>> The resolution of
>>
>> http://public.kitware.com/Bug/view.php?id=14602
>>
>> is that all projects which wish to build libraries for Android must
>> create their own Platform/Android.cmake file.
>>
>> The alternative is to ship such a file with cmake and to set
>> CMAKE_SYSTEM_NAME to Android, which correctly sets the
>> CMAKE_SHARED_LIBRARY_SONAME_C_FLAG.
>>
>> I don't understand why the former was chosen. Why not the latter?
>
> No, the resolution was to create a local Platform/Linux.cmake:
Ok. I wrote that wrong.
The name of the file(s) is not really the point I was raising though. The
point is that all projects must take the same or similar action in order to
build shared libraries on Android.
> If the CMAKE_SYSTEM_NAME is Android then all the Platform/Linux-*.cmake
> files need to have Platform/Android-*.cmake forwarding files created.
Any reason not to prefer this?
Thanks,
Steve.
More information about the cmake-developers
mailing list