[cmake-developers] Android platform file

Brad King brad.king at kitware.com
Tue Mar 4 11:23:49 EST 2014


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:

 http://www.cmake.org/Bug/view.php?id=14602#c35199

that includes the original and overrides a couple of settings.

If the CMAKE_SYSTEM_NAME is Android then all the Platform/Linux-*.cmake
files need to have Platform/Android-*.cmake forwarding files created.

-Brad




More information about the cmake-developers mailing list