diff options
author | Brad King <brad.king@kitware.com> | 2012-08-02 15:08:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-02 15:33:18 (GMT) |
commit | 796e33734db09d80041872e4ce04e838146466df (patch) | |
tree | db414641a3d38fa249240b561085b28861582190 /Modules/Platform | |
parent | b708f1a2b9bc82ada6a22f6c63d9fb6ccedb2862 (diff) | |
download | CMake-796e33734db09d80041872e4ce04e838146466df.zip CMake-796e33734db09d80041872e4ce04e838146466df.tar.gz CMake-796e33734db09d80041872e4ce04e838146466df.tar.bz2 |
Factor common code out of CMakeDetermine(ASM|C|CXX|Fortran)Compiler
The compiler candidate list selection and search code for C, C++, ASM,
and Fortran languages was duplicated across four modules. To look for
compilers adjacent to already-enabled languages the C and CXX modules
each used _CMAKE_USER_(C|CXX)_COMPILER_PATH and the ASM module used
_CMAKE_TOOLCHAIN_LOCATION. Since commit 4debb7ac (Bias Fortran compiler
search with C/C++ compilers, 2009-09-09) CMake prefers Fortran compilers
matching the vendor and directory of an enabled C or C++ compiler.
Factor out the common functionality among the four languages into a new
CMakeDetermineCompiler module. Generalize the Fortran implementation so
that all languages may each use the vendor and directory of the other
languages that have already been enabled. For now do not list any
vendor-specific names for C, C++, or ASM so that only the directory
preference is used for these languages (existing behavior).
Diffstat (limited to 'Modules/Platform')
0 files changed, 0 insertions, 0 deletions