The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15998 
====================================================================== 
Reported By:                huiyiqun
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15998
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-02 00:26 EST
Last Modified:              2016-03-02 00:26 EST
====================================================================== 
Summary:                    Add variable to cmake in order to decide whether
building is for android
Description: 
I'm build a cmake project(YouCompleteMe) under Android. Everything works well
except that ld try to link librt wrongly, which has been integrated into Bionic
and not available under Android System.

I have googled for a while to look for a solution to detect android system in
cmake, but there is none.

If I am building a program for Mac OS X, there is a variable APPLE to tell me
that this is a Mac OS X instead of normal BSD. But there is no variable ANDROID
to tell me that this is a Android System instead of normal Linux. In my opinion,
these two scenes are similar.

Of course, I could define a variable to differ Android from normal Linux. but I
guess we need an official way to do this.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-02 00:26 huiyiqun       New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to