CMake/Modules/Platform
Brad King 6205f1797e Android: Set CMAKE_POSITION_INDEPENDENT_CODE automatically
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.
2016-10-24 11:40:53 -04:00
..
Android Android: Set CMAKE_POSITION_INDEPENDENT_CODE automatically 2016-10-24 11:40:53 -04:00
AIX-Clang-C.cmake AIX: Add support for Clang compiler 2016-06-20 09:59:31 -04:00
AIX-Clang-CXX.cmake AIX: Add support for Clang compiler 2016-06-20 09:59:31 -04:00
AIX-GNU-ASM.cmake
AIX-GNU-C.cmake
AIX-GNU-CXX.cmake GNU: Do not use -fvisibility on AIX or HP-UX 2016-09-05 09:45:13 -04:00
AIX-GNU-Fortran.cmake
AIX-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
AIX-VisualAge-C.cmake
AIX-VisualAge-CXX.cmake
AIX-VisualAge-Fortran.cmake
AIX-XL-ASM.cmake
AIX-XL-C.cmake
AIX-XL-CXX.cmake
AIX-XL-Fortran.cmake
AIX-XL.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
AIX.cmake AIX,HP: Allow user to override the default runtime path (libpath) 2016-05-17 13:36:29 -04:00
ARTOS-GNU-C.cmake Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
ARTOS.cmake Add support for ARTOS platform using GNU C with ac compiler driver 2015-08-17 10:32:50 -04:00
Android-Clang-C.cmake Android: Add placeholders for platform-specific compiler settings 2016-08-12 10:40:51 -04:00
Android-Clang-CXX.cmake Android: Add placeholders for platform-specific compiler settings 2016-08-12 10:40:51 -04:00
Android-Clang.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Android-Common.cmake Android: Add missing link flags for device executables 2016-10-21 10:43:45 -04:00
Android-Determine-C.cmake Android: Add placeholders for platform-specific compiler selection 2016-08-12 10:40:51 -04:00
Android-Determine-CXX.cmake Android: Add placeholders for platform-specific compiler selection 2016-08-12 10:40:51 -04:00
Android-Determine.cmake VS: Fix NVIDIA Nsight Tegra Visual Studio Edition support 2016-10-18 13:32:50 -04:00
Android-GNU-C.cmake Android: Add placeholders for platform-specific compiler settings 2016-08-12 10:40:51 -04:00
Android-GNU-CXX.cmake Android: Add placeholders for platform-specific compiler settings 2016-08-12 10:40:51 -04:00
Android-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Android-Initialize.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Android.cmake Android: Add `ANDROID` variable to indicate the target 2016-08-23 13:10:51 -04:00
BSDOS.cmake
BeOS.cmake
BlueGeneL.cmake
BlueGeneP-base.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic-GNU-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic-GNU-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic-GNU-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic-XL-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic-XL-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic-XL-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-dynamic.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static-GNU-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static-GNU-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static-GNU-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static-XL-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static-XL-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static-XL-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneP-static.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-base.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic-GNU-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic-GNU-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic-GNU-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic-XL-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic-XL-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic-XL-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-dynamic.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static-GNU-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static-GNU-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static-GNU-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static-XL-C.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static-XL-CXX.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static-XL-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
BlueGeneQ-static.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
CYGWIN-Clang-C.cmake Cygwin: Add support for Clang compiler 2016-03-10 09:35:48 -05:00
CYGWIN-Clang-CXX.cmake Cygwin: Add support for Clang compiler 2016-03-10 09:35:48 -05:00
CYGWIN-Determine-CXX.cmake Modules: Rename internal platform-specific compiler determination modules 2016-06-02 09:51:43 -04:00
CYGWIN-GNU-C.cmake
CYGWIN-GNU-CXX.cmake
CYGWIN-GNU-Fortran.cmake
CYGWIN-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
CYGWIN-windres.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
CYGWIN.cmake
Catamount.cmake
CrayLinuxEnvironment.cmake CrayLinuxEnvironment: Add alternative methods to get version info 2016-08-05 09:01:43 -04:00
Darwin-Absoft-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-AppleClang-C.cmake OS X: Use -iframework with AppleClang only on version >= 4.2 2015-07-22 09:04:04 -04:00
Darwin-AppleClang-CXX.cmake OS X: Use -iframework with AppleClang only on version >= 4.2 2015-07-22 09:04:04 -04:00
Darwin-Clang-C.cmake
Darwin-Clang-CXX.cmake
Darwin-Clang.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-Determine-CXX.cmake Modules: Rename internal platform-specific compiler determination modules 2016-06-02 09:51:43 -04:00
Darwin-GNU-C.cmake
Darwin-GNU-CXX.cmake
Darwin-GNU-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-Initialize.cmake OS X: Do not try to set deployment target when cross-compiling 2016-10-17 10:02:17 -04:00
Darwin-Intel-C.cmake OS X: Split Intel compiler information files 2014-02-11 10:04:26 -05:00
Darwin-Intel-CXX.cmake OS X: Split Intel compiler information files 2014-02-11 10:04:26 -05:00
Darwin-Intel-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-Intel.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-NAG-Fortran.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Darwin-VisualAge-C.cmake
Darwin-VisualAge-CXX.cmake
Darwin-XL-C.cmake
Darwin-XL-CXX.cmake
Darwin.cmake Darwin: Add support for tbd library stub files 2015-08-24 22:29:33 +02:00
DragonFly.cmake
Euros.cmake Add EUROS RTOS platform description file 2015-07-14 14:33:20 -04:00
FreeBSD.cmake BSD: Do not require dlfcn.h to build shared libs (#13573) 2012-10-05 10:08:28 -04:00
GHS-MULTI-Initialize.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
GHS-MULTI.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
GNU.cmake
GNUtoMS_lib.bat.in
GNUtoMS_lib.cmake
Generic-ADSP-ASM.cmake ASM: Add missing <INCLUDES> placeholder for "compile" rules 2016-03-29 09:19:10 -04:00
Generic-ADSP-C.cmake Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
Generic-ADSP-CXX.cmake Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
Generic-ADSP-Common.cmake
Generic-SDCC-C.cmake Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
Generic.cmake
HP-UX-GNU-ASM.cmake HP-UX: Add GNU compiler information for ASM language 2015-05-04 11:06:16 -04:00
HP-UX-GNU-C.cmake
HP-UX-GNU-CXX.cmake GNU: Do not use -fvisibility on AIX or HP-UX 2016-09-05 09:45:13 -04:00
HP-UX-GNU-Fortran.cmake
HP-UX-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
HP-UX-HP-ASM.cmake
HP-UX-HP-C.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
HP-UX-HP-CXX.cmake Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
HP-UX-HP-Fortran.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
HP-UX-HP.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
HP-UX.cmake AIX,HP: Allow user to override the default runtime path (libpath) 2016-05-17 13:36:29 -04:00
Haiku.cmake Haiku: Fix compiler detection when using distcc 2014-03-21 08:19:10 -04:00
IRIX.cmake Makefile: Add assembly and preprocessed targets for Fortran 2014-11-10 10:24:53 -05:00
IRIX64.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
Linux-Absoft-Fortran.cmake
Linux-CCur-Fortran.cmake Add support for Concurrent Fortran 77 Compiler 2015-06-18 11:36:12 -04:00
Linux-Clang-C.cmake
Linux-Clang-CXX.cmake
Linux-Determine-CXX.cmake Modules: Rename internal platform-specific compiler determination modules 2016-06-02 09:51:43 -04:00
Linux-GNU-C.cmake
Linux-GNU-CXX.cmake
Linux-GNU-Fortran.cmake GNU: Drop -rdynamic flag from Fortran 2015-06-16 13:58:41 -04:00
Linux-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Linux-Intel-C.cmake Intel compiler: add -isystem flag under Linux 2014-02-07 00:23:31 +01:00
Linux-Intel-CXX.cmake Intel compiler: add -isystem flag under Linux 2014-02-07 00:23:31 +01:00
Linux-Intel-Fortran.cmake Use string(APPEND) in Modules 2016-07-28 00:41:13 +02:00
Linux-Intel.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Linux-NAG-Fortran.cmake
Linux-PGI-C.cmake
Linux-PGI-CXX.cmake
Linux-PGI-Fortran.cmake
Linux-PGI.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Linux-PathScale-C.cmake
Linux-PathScale-CXX.cmake
Linux-PathScale-Fortran.cmake
Linux-PathScale.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Linux-SunPro-CXX.cmake
Linux-TinyCC-C.cmake
Linux-VisualAge-C.cmake
Linux-VisualAge-CXX.cmake
Linux-VisualAge-Fortran.cmake
Linux-XL-C.cmake XL: Fix link flags for executables on Linux with XL compilers 2015-01-12 12:59:52 -05:00
Linux-XL-CXX.cmake XL: Fix link flags for executables on Linux with XL compilers 2015-01-12 12:59:52 -05:00
Linux-XL-Fortran.cmake XL: Fix link flags for executables on Linux with XL compilers 2015-01-12 12:59:52 -05:00
Linux-como.cmake
Linux.cmake Teach find_library and find_package to search lib32 paths (#11260) 2016-06-10 11:09:16 -04:00
MP-RAS.cmake
MirBSD.cmake Add MirBSD platform support (#14659) 2013-12-19 11:08:28 -05:00
NetBSD.cmake BSD: Do not require dlfcn.h to build shared libs (#13573) 2012-10-05 10:08:28 -04:00
OSF1.cmake Remove .* expressions from beginning and end of MATCHES regexs 2014-04-14 18:17:11 +02:00
OpenBSD.cmake Teach find_library and find_package to search lib32 paths (#11260) 2016-06-10 11:09:16 -04:00
OpenVMS.cmake
QNX.cmake QNX: Add missing flags for configurations and artifact creation. 2014-07-17 09:36:18 -04:00
RISCos.cmake
SCO_SV.cmake SCO_SV: Enable so filename versioning 2016-08-02 10:09:52 -04:00
SINIX.cmake
SunOS-GNU-C.cmake
SunOS-GNU-CXX.cmake
SunOS-GNU-Fortran.cmake
SunOS-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
SunOS-PathScale-C.cmake Platform: add flag definitions for PathScale compiler on SunOS (#16135) 2016-06-06 08:58:20 -04:00
SunOS-PathScale-CXX.cmake Platform: add flag definitions for PathScale compiler on SunOS (#16135) 2016-06-06 08:58:20 -04:00
SunOS-PathScale-Fortran.cmake Platform: add flag definitions for PathScale compiler on SunOS (#16135) 2016-06-06 08:58:20 -04:00
SunOS-PathScale.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
SunOS.cmake SunOS: Remove obsolete Studio compiler library directories 2015-11-16 10:41:10 -05:00
Tru64.cmake
ULTRIX.cmake
UNIX_SV.cmake
UnixPaths.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
UnixWare.cmake
Windows-Borland-C.cmake
Windows-Borland-CXX.cmake
Windows-Clang-C.cmake Clang: Support Windows variants for GNU and MSVC (#13035, #14458) 2013-10-04 13:39:22 -04:00
Windows-Clang-CXX.cmake Clang: Support Windows variants for GNU and MSVC (#13035, #14458) 2013-10-04 13:39:22 -04:00
Windows-Clang.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Windows-Determine-CXX.cmake Modules: Rename internal platform-specific compiler determination modules 2016-06-02 09:51:43 -04:00
Windows-Embarcadero-C.cmake
Windows-Embarcadero-CXX.cmake
Windows-Embarcadero.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Windows-G95-Fortran.cmake
Windows-GNU-C-ABI.cmake
Windows-GNU-C.cmake
Windows-GNU-CXX-ABI.cmake
Windows-GNU-CXX.cmake
Windows-GNU-Fortran-ABI.cmake
Windows-GNU-Fortran.cmake
Windows-GNU.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Windows-Intel-ASM.cmake
Windows-Intel-C.cmake
Windows-Intel-CXX.cmake Intel: When simulating MSVC, re-use Windows-MSVC (#14476) 2013-10-18 09:55:59 -04:00
Windows-Intel-Fortran.cmake Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
Windows-Intel.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Windows-MSVC-C.cmake Revert topic 'feature_record_msvc' 2015-01-14 13:35:58 -05:00
Windows-MSVC-CXX.cmake Revert topic 'feature_record_msvc' 2015-01-14 13:35:58 -05:00
Windows-MSVC.cmake Merge topic 'vs-clang-llvm-support' 2016-09-29 08:09:39 -04:00
Windows-NMcl.cmake
Windows-OpenWatcom-C.cmake OpenWatcom: Partially modernize platform information modules 2016-07-06 10:10:10 -04:00
Windows-OpenWatcom-CXX.cmake OpenWatcom: Partially modernize platform information modules 2016-07-06 10:10:10 -04:00
Windows-OpenWatcom.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
Windows-Watcom-C.cmake OpenWatcom: Partially modernize platform information modules 2016-07-06 10:10:10 -04:00
Windows-Watcom-CXX.cmake OpenWatcom: Partially modernize platform information modules 2016-07-06 10:10:10 -04:00
Windows-df.cmake Drop Visual Studio 6 generator 2016-03-09 09:42:18 -05:00
Windows-windres.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
Windows.cmake Define 'WINDOWS_PHONE' and 'WINDOWS_STORE' variables 2014-07-31 14:08:52 -04:00
WindowsCE-MSVC-C.cmake
WindowsCE-MSVC-CXX.cmake
WindowsCE.cmake
WindowsPaths.cmake Simplify CMake per-source license notices 2016-09-27 15:14:44 -04:00
WindowsPhone-MSVC-C.cmake Add WindowsPhone and WindowsStore platform information modules 2014-07-31 14:08:50 -04:00
WindowsPhone-MSVC-CXX.cmake Add WindowsPhone and WindowsStore platform information modules 2014-07-31 14:08:50 -04:00
WindowsPhone.cmake Add WindowsPhone and WindowsStore platform information modules 2014-07-31 14:08:50 -04:00
WindowsStore-MSVC-C.cmake Add WindowsPhone and WindowsStore platform information modules 2014-07-31 14:08:50 -04:00
WindowsStore-MSVC-CXX.cmake Add WindowsPhone and WindowsStore platform information modules 2014-07-31 14:08:50 -04:00
WindowsStore.cmake Add WindowsPhone and WindowsStore platform information modules 2014-07-31 14:08:50 -04:00
Xenix.cmake
eCos.cmake Avoid if() quoted auto-dereference 2014-10-20 11:49:16 -04:00
gas.cmake ASM: Add missing <INCLUDES> placeholder for "compile" rules 2016-03-29 09:19:10 -04:00
kFreeBSD.cmake
syllable.cmake