View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015998 | CMake | CMake | public | 2016-03-02 00:26 | 2016-06-10 14:21 | ||||
Reporter | huiyiqun | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | Android OS | OS | Android | OS Version | 6.0 | ||||
Product Version | CMake 3.4.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015998: 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0040637) Brad King (manager) 2016-03-07 11:25 |
When cross-compiling to Android one typically uses a toolchain file that sets CMAKE_SYSTEM_NAME to "Android". This value can be tested by project code to check the target system. |
(0041236) Kitware Robot (administrator) 2016-06-10 14:21 |
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2016-03-02 00:26 | huiyiqun | New Issue | |
2016-03-07 11:25 | Brad King | Note Added: 0040637 | |
2016-03-07 11:25 | Brad King | Status | new => resolved |
2016-03-07 11:25 | Brad King | Resolution | open => no change required |
2016-06-10 14:21 | Kitware Robot | Note Added: 0041236 | |
2016-06-10 14:21 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |