https://github.com/Kitware/CMake
Revision 6205f1797e33c22ab1f9cda8598d02b24497b806 authored by Brad King on 24 October 2016, 15:40:53 UTC, committed by Brad King on 24 October 2016, 15:40:53 UTC
If the toolchain file or cache does not set this, enable it
automatically based on the Android API version.  Versions 16
and above expect position independent code.

Use the main `CMAKE_POSITION_INDEPENDENT_CODE` setting in favor of
hard-coding `-fpic` or `-fPIC` in the compiler flags for each ABI.
This allows CMake to use `-fpie` or `-fPIE` as needed when sources
are meant for executables, and `-fpic` or `-fPIC` for other sources.
1 parent 295c8ef
History
Tip revision: 6205f1797e33c22ab1f9cda8598d02b24497b806 authored by Brad King on 24 October 2016, 15:40:53 UTC
Android: Set CMAKE_POSITION_INDEPENDENT_CODE automatically
Tip revision: 6205f17
File Mode Size
LGPLv2.1.txt -rw-r--r-- 25.9 KB
LGPLv3.txt -rw-r--r-- 7.5 KB
README.rst -rw-r--r-- 242 bytes

README.rst

back to top