CMake/Modules/Platform
Brad King 09b2f1c3f5 Windows: Find Program Files directories more robustly from environment
In Modules/Platform/WindowsPaths.cmake our previously recorded
environment variable combinations no longer seem to be correct.  For
example, a 64-bit cmake binary may see ProgramW6432 in the environment
and end up not considering the "ProgramFiles(x86)" variable.  Instead
check for all possible environment variables in the preferred order and
then remove duplicates.

Reported-by: Shawn Waldon <shawn.waldon@kitware.com>
2016-01-15 14:07:22 -05:00
..
AIX-GNU-ASM.cmake Add ASM platform information for GNU compiler on AIX (#13390) 2012-07-10 15:18:55 -04:00
AIX-GNU-C.cmake
AIX-GNU-CXX.cmake
AIX-GNU-Fortran.cmake
AIX-GNU.cmake AIX,HP-UX: Fix RPATH handling when CMP0065 is set to NEW 2015-12-11 09:21:47 -05:00
AIX-VisualAge-C.cmake
AIX-VisualAge-CXX.cmake
AIX-VisualAge-Fortran.cmake XL: Fix old VisualAge branding of Fortran compiler 2011-08-02 17:26:29 -04:00
AIX-XL-ASM.cmake
AIX-XL-C.cmake
AIX-XL-CXX.cmake Factor AIX and XL compiler flags into common module 2011-03-02 11:20:50 -05:00
AIX-XL-Fortran.cmake
AIX-XL.cmake AIX,HP-UX: Fix RPATH handling when CMP0065 is set to NEW 2015-12-11 09:21:47 -05:00
AIX.cmake Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
ARTOS-GNU-C.cmake Add support for ARTOS platform using GNU C with ac compiler driver 2015-08-17 10:32:50 -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.cmake VS: Fix Tegra-Android platform linking of libraries by name 2014-09-30 08:45:35 -04:00
BSDOS.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
BeOS.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
BlueGeneL.cmake Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
BlueGeneP-base.cmake Add platform variables for position independent code flags 2012-06-12 15:37:53 -04:00
BlueGeneP-dynamic-GNU-C.cmake
BlueGeneP-dynamic-GNU-CXX.cmake
BlueGeneP-dynamic-GNU-Fortran.cmake
BlueGeneP-dynamic-XL-C.cmake
BlueGeneP-dynamic-XL-CXX.cmake
BlueGeneP-dynamic-XL-Fortran.cmake
BlueGeneP-dynamic.cmake
BlueGeneP-static-GNU-C.cmake
BlueGeneP-static-GNU-CXX.cmake
BlueGeneP-static-GNU-Fortran.cmake
BlueGeneP-static-XL-C.cmake
BlueGeneP-static-XL-CXX.cmake
BlueGeneP-static-XL-Fortran.cmake
BlueGeneP-static.cmake
BlueGeneQ-base.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
BlueGeneQ-dynamic-GNU-C.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-dynamic-GNU-CXX.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-dynamic-GNU-Fortran.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-dynamic-XL-C.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-dynamic-XL-CXX.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-dynamic-XL-Fortran.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-dynamic.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static-GNU-C.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static-GNU-CXX.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static-GNU-Fortran.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static-XL-C.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static-XL-CXX.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static-XL-Fortran.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
BlueGeneQ-static.cmake BlueGene/Q Platform files 2015-03-18 23:40:12 -07:00
CYGWIN-CXX.cmake Prefer generic system compilers by default for C, C++, and Fortran 2012-08-02 13:26:01 -04:00
CYGWIN-GNU-C.cmake
CYGWIN-GNU-CXX.cmake
CYGWIN-GNU-Fortran.cmake
CYGWIN-GNU.cmake RC: Simplify selection of resource compiler based on C/C++ toolchain 2015-05-07 11:43:02 -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 Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Catamount.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
CrayLinuxEnvironment.cmake Cray: Refactor the Cray platform files to use compiler wrapper checks 2015-12-09 08:35:19 -05:00
Darwin-Absoft-Fortran.cmake OS X: Add Fortran library version flags (#14249) 2013-07-16 09:27:50 -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-CXX.cmake Prefer generic system compilers by default for C, C++, and Fortran 2012-08-02 13:26:01 -04:00
Darwin-Clang-C.cmake OS X: Add platform-specific Clang compiler info files (#13536) 2012-09-17 15:36:41 -04:00
Darwin-Clang-CXX.cmake OS X: Add platform-specific Clang compiler info files (#13536) 2012-09-17 15:36:41 -04:00
Darwin-Clang.cmake OS X: Use -iframework for system framework directories 2014-05-07 09:04:48 -04:00
Darwin-GNU-C.cmake OS X: Always generate -isysroot if any SDK is in use 2012-09-21 08:53:42 -04:00
Darwin-GNU-CXX.cmake OS X: Always generate -isysroot if any SDK is in use 2012-09-21 08:53:42 -04:00
Darwin-GNU-Fortran.cmake OS X: Detect deployment target flags from GNU Fortran compilers 2014-10-27 08:40:55 -04:00
Darwin-GNU.cmake OS X: Use -iframework for system framework directories 2014-05-07 09:04:48 -04:00
Darwin-Initialize.cmake Xcode: Adjust deployment target SDK version to host version 2015-10-12 15:31:10 -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 OS X: Split Intel compiler information files 2014-02-11 10:04:26 -05:00
Darwin-Intel.cmake OS X: Split Intel compiler information files 2014-02-11 10:04:26 -05:00
Darwin-NAG-Fortran.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
Darwin-VisualAge-C.cmake
Darwin-VisualAge-CXX.cmake
Darwin-XL-C.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Darwin-XL-CXX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Darwin.cmake Darwin: Add support for tbd library stub files 2015-08-24 22:29:33 +02:00
DragonFly.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
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 GHS: Find latest 'int' directory 2015-09-09 10:12:35 -04:00
GHS-MULTI.cmake Add a 'Green Hills MULTI' generator on Windows 2015-04-20 13:55:40 -04:00
GNU.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
GNUtoMS_lib.bat.in Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 2011-12-05 18:13:49 -05:00
GNUtoMS_lib.cmake Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 2011-12-05 18:13:49 -05:00
Generic-ADSP-ASM.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Generic-ADSP-C.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Generic-ADSP-CXX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Generic-ADSP-Common.cmake Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
Generic-SDCC-C.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04:00
Generic.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
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
HP-UX-GNU-Fortran.cmake
HP-UX-GNU.cmake AIX,HP-UX: Fix RPATH handling when CMP0065 is set to NEW 2015-12-11 09:21:47 -05:00
HP-UX-HP-ASM.cmake HP: Drive shared library linking with compiler front end 2011-12-14 09:32:27 -05:00
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 Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -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 AIX,HP-UX: Fix RPATH handling when CMP0065 is set to NEW 2015-12-11 09:21:47 -05:00
HP-UX.cmake Merge topic 'hp-ux-itanium-shared-libs' 2015-08-21 09:28:55 -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-CXX.cmake Prefer generic system compilers by default for C, C++, and Fortran 2012-08-02 13:26:01 -04:00
Linux-Clang-C.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Linux-Clang-CXX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Linux-GNU-C.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Linux-GNU-CXX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Linux-GNU-Fortran.cmake GNU: Drop -rdynamic flag from Fortran 2015-06-16 13:58:41 -04:00
Linux-GNU.cmake
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 Intel: Drop deprecated -i_dynamic flag from Fortran (#14507) 2013-10-24 09:29:43 -04:00
Linux-Intel.cmake Visibility: the Intel compiler does not support -fvisibility on windows 2014-02-07 11:50:08 +01:00
Linux-NAG-Fortran.cmake
Linux-PGI-C.cmake
Linux-PGI-CXX.cmake
Linux-PGI-Fortran.cmake
Linux-PGI.cmake PGI: Remove invalid -fPIE flag (#15460) 2015-03-20 12:59:54 -04:00
Linux-PathScale-C.cmake
Linux-PathScale-CXX.cmake
Linux-PathScale-Fortran.cmake
Linux-PathScale.cmake Add platform variables for position independent code flags 2012-06-12 15:37:53 -04:00
Linux-SunPro-CXX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Linux-TinyCC-C.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
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 Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Linux.cmake Linux: Ignore Debian-specific case when cross-compiling 2015-03-23 09:19:54 -04:00
MP-RAS.cmake Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
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 OpenBSD: honor the LOCALBASE and X11BASE environment variables 2014-05-21 20:38:55 +02:00
OpenVMS.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
QNX.cmake QNX: Add missing flags for configurations and artifact creation. 2014-07-17 09:36:18 -04:00
RISCos.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
SCO_SV.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
SINIX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
SunOS-GNU-C.cmake
SunOS-GNU-CXX.cmake
SunOS-GNU-Fortran.cmake
SunOS-GNU.cmake
SunOS.cmake SunOS: Remove obsolete Studio compiler library directories 2015-11-16 10:41:10 -05:00
Tru64.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
ULTRIX.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
UNIX_SV.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
UnixPaths.cmake Drop /lib32 and /lib64 from link directories and RPATH (#14875) 2014-04-16 11:40:48 -04:00
UnixWare.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
Windows-Borland-C.cmake Recognize Embarcadero compiler (#12604) 2012-02-20 10:09:44 -05:00
Windows-Borland-CXX.cmake Recognize Embarcadero compiler (#12604) 2012-02-20 10:09:44 -05:00
Windows-CXX.cmake Prefer generic system compilers by default for C, C++, and Fortran 2012-08-02 13:26:01 -04:00
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 Avoid if() quoted auto-dereference when checking for "MSVC" 2014-11-19 16:24:54 -05:00
Windows-Embarcadero-C.cmake Recognize Embarcadero compiler (#12604) 2012-02-20 10:09:44 -05:00
Windows-Embarcadero-CXX.cmake Recognize Embarcadero compiler (#12604) 2012-02-20 10:09:44 -05:00
Windows-Embarcadero.cmake Embarcadero: Fix bug where duplicate Ninja job pools would be created. 2015-12-03 19:10:19 +00:00
Windows-G95-Fortran.cmake
Windows-GNU-C-ABI.cmake Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 2011-12-05 18:13:49 -05:00
Windows-GNU-C.cmake
Windows-GNU-CXX-ABI.cmake Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 2011-12-05 18:13:49 -05:00
Windows-GNU-CXX.cmake
Windows-GNU-Fortran-ABI.cmake Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 2011-12-05 18:13:49 -05:00
Windows-GNU-Fortran.cmake Fortran: Detect pointer size in gfortran on MinGW 2011-12-05 16:32:29 -05:00
Windows-GNU.cmake Re-order 'ar' options 'cq' => 'qc' 2015-09-09 11:08:20 -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 Intel: Disable Fortran optimizations for Debug config on Windows (#15583) 2015-05-26 10:25:31 -04:00
Windows-Intel.cmake Intel: When simulating MSVC, re-use Windows-MSVC (#14476) 2013-10-18 09:55:59 -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 Ninja: Refactor selection of 'deps = ' value for MS-compatible toolchains 2015-10-20 14:14:20 -04:00
Windows-NMcl.cmake
Windows-df.cmake RC: Drop unused CMAKE_COMPILE_RESOURCE variable setting 2015-02-25 11:16:19 -05:00
Windows-wcl386.cmake Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 2015-07-13 10:49:46 -04: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 Add WindowsCE platform information files 2012-09-05 07:38:45 -04:00
WindowsCE-MSVC-CXX.cmake Add WindowsCE platform information files 2012-09-05 07:38:45 -04:00
WindowsCE.cmake Add WindowsCE platform information files 2012-09-05 07:38:45 -04:00
WindowsPaths.cmake Windows: Find Program Files directories more robustly from environment 2016-01-15 14:07:22 -05: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 Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
eCos.cmake Avoid if() quoted auto-dereference 2014-10-20 11:49:16 -04:00
gas.cmake Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
kFreeBSD.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
syllable.cmake Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00