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
Tip revision: 6205f1797e33c22ab1f9cda8598d02b24497b806 authored by Brad King on 24 October 2016, 15:40:53 UTC
Android: Set CMAKE_POSITION_INDEPENDENT_CODE automatically
Android: Set CMAKE_POSITION_INDEPENDENT_CODE automatically
Tip revision: 6205f17
File | Mode | Size |
---|---|---|
Auxiliary | ||
Help | ||
Licenses | ||
Modules | ||
Packaging | ||
Source | ||
Templates | ||
Tests | ||
Utilities | ||
.clang-format | -rw-r--r-- | 217 bytes |
.gitattributes | -rw-r--r-- | 658 bytes |
.gitignore | -rw-r--r-- | 64 bytes |
.hooks-config.bash | -rw-r--r-- | 435 bytes |
CMakeCPack.cmake | -rw-r--r-- | 8.1 KB |
CMakeCPackOptions.cmake.in | -rw-r--r-- | 12.8 KB |
CMakeGraphVizOptions.cmake | -rw-r--r-- | 153 bytes |
CMakeLists.txt | -rw-r--r-- | 29.1 KB |
CMakeLogo.gif | -rw-r--r-- | 4.4 KB |
CONTRIBUTING.rst | -rw-r--r-- | 1.7 KB |
CTestConfig.cmake | -rw-r--r-- | 440 bytes |
CTestCustom.cmake.in | -rw-r--r-- | 5.8 KB |
CompileFlags.cmake | -rw-r--r-- | 2.9 KB |
Copyright.txt | -rw-r--r-- | 4.8 KB |
DartConfig.cmake | -rw-r--r-- | 374 bytes |
README.rst | -rw-r--r-- | 2.9 KB |
bootstrap | -rwxr-xr-x | 46.6 KB |
cmake_uninstall.cmake.in | -rw-r--r-- | 790 bytes |
configure | -rwxr-xr-x | 99 bytes |
doxygen.config | -rw-r--r-- | 27.4 KB |
Computing file changes ...