summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Make --strict-mode option, and integrate with cmake-guiBill Hoffman2010-09-011-1/+3
|
* Add timeout to execute_process() in CMAKE_DETERMINE_COMPILER_ID().Alex Neundorf2010-08-171-3/+10
| | | | | | | | | | | In CMAKE_DETERMINE_COMPILER_ID_VENDOR() the compiler is called with various arguments. In some cases, this can make the compiler hang and wait forever for input (e.g. "as -v"). That's why add an timeout so it terminates finally. 10 seconds should be more than enough, this is the time it takes to startup the compiler, which is usually quite fast. Alex
* Detect a COMPILER_ID also for ASM.Alex Neundorf2010-08-151-0/+11
| | | | | | | | | | | | | | | For assembler, the "compiler ID" cannot be detected by "compiling" a source file, since there is not source file all assemblers understand. Instead the function CMAKE_DETERMINE_COMPILER_ID_VENDOR() is used to run the assembler and check its output. For this the CMAKE_DETERMINE_COMPILER_ID_VENDOR() function had to be extended so that it creates the run directory if it doesn't exist yet. In CMakeASMInformation.cmake now also CMAKE_ASM_COMPILER_ID is used (but there are no such files yet, will come with the support for the IAR toolchain). Alex
* Remove trailing spacesAlex Neundorf2010-08-151-2/+2
| | | | Alex
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Support multiple arguments in CC,CXX,FC valuesBrad King2010-03-151-0/+1
| | | | | | | | | Teach compiler identification to support values such as export CC='gcc -g -O2' by separating the arguments on spaces. We already do this for the values of CFLAGS, CXXFLAGS, and FFLAGS.
* Add alternate per-vendor compiler id detectionBrad King2010-02-011-0/+40
| | | | | | | At least one Fortran compiler does not provide a preprocessor symbol to identify itself. Instead we try running unknown compilers with version query flags known for each vendor and look for known output. Future commits will add vendor-specific flags/output table entries.
* Change the way 32/64 bit compiles are detected with MSVC and intel makefile ↵Bill Hoffman2009-11-201-1/+10
| | | | builds. Use the platform ID preprocessor approach.
* Convert CMake non-find modules to BSD LicenseBrad King2009-09-281-0/+13
| | | | | | | This adds copyright/license notification blocks CMake's non-find modules. Most of the modules had no notices at all. Some had notices referring to the BSD license already. This commit normalizes existing notices and adds missing notices.
* BUG: make compiler id detection (almost) work again with sdcc 2.8.0 RC1,Alexander Neundorf2008-03-091-4/+4
| | | | | | | | | | mail sent to Brad for the remaining issue don't match INFO:compiler[" COMPILER_ID "] which appears in the assembler file generated from the C file by sdcc, but make sure the first character after the [ is no double quote Alex
* ENH: Improvied compiler identification robustnessBrad King2008-02-251-37/+39
| | | | | | | | - Write a single source file into the compiler id directory - This avoid requiring the compiler to behave correctly with respect to include rules and the current working directory - Helps to identify cross-compiling toolchains with unusual default behavior
* ENH: Cleanup chrpath feature by not displaying exe format or placing ↵Brad King2008-01-221-4/+2
| | | | non-advanced options in cache.
* ENH: remove RAISE_SCOPE() again and instead add SET(<var> <value> PARENT_SCOPE)Alexander Neundorf2008-01-181-6/+6
| | | | Alex
* ENH: Add support to CMAKE_DETERMINE_COMPILER_ID macro to try building the id ↵Brad King2008-01-071-91/+158
| | | | source more than once with different extra flags added to the compiler. Use the support to correctly identify the Intel Fortran compiler on windows which does not preprocess by default without special flags.
* ENH: check the magic code of the executable file to determine the executableAlexander Neundorf2008-01-021-0/+32
| | | | | | | | | | file format. Tested for ELF on x86 Linux, COFF and Mach-O prepared but commented out since I don't have such systems available. Please have a look a CMakeDetermineCompilerId.cmake and enable the test for them too. Only add the option for using chrpath if the executable format is ELF Alex
* BUG: Need to strip leading and trailing whitespace off the compiler 'ARG1'. ↵Brad King2007-12-151-2/+5
| | | | This fixes bug#6141.
* BUG: fix compiler id test on cygwinAlexander Neundorf2007-08-101-2/+2
| | | | Alex
* ENH: UNIX, CYGWIN, WIN32, APPLE, QNXNTO and BEOS are not longer set inAlexander Neundorf2007-08-091-2/+2
| | | | | | | | | | | | | | cmMakefile.cxx, but now in the platform files and are now valid for the target platform, not the host platform. New variables CMAKE_HOST_WIN32, CMAKE_HOST_UNIX, CMAKE_HOST_APPLE and CMAKE_HOST_CYGWIN have been added in cmMakefile.cxx (...and have now to be used in all cmake files which are executed before CMakeSystemSpecificInformation.cmake is loaded). For compatibility the old set is set to the new one in CMakeDetermineSystem.cmake and reset before the system platform files are loaded, so custom language or compiler modules which use these should still work. Alex
* BUG: use ${LANG}_COMPILER_ARG1 also here, otherwise some compilers won't beAlexander Neundorf2007-06-271-2/+2
| | | | | | | able to compile e.g. the C++ source file (e.g. the ADSP compiler needs -c++ for compiling C++ files) Alex
* STYLE: remove out commented codeAlexander Neundorf2007-06-071-3/+1
| | | | Alex
* ENH: add option to FILE(STRINGS NO_HEX_CONVERSION) to disable automaticAlexander Neundorf2007-05-251-0/+2
| | | | | | | | | | | | | | | | | | | conversion of hex and srec files to binary. Without this automatic conversion, everywhere where a compiled file is parsed for strings the a file(HEX2BIN somefile binfile) command has to be added otherwise it will not work for these compilers. I tried this with DetermineCompiler and CheckTypeSize and nobody will do this except the users who work with such compilers. For them it will break if they don't add this conversion command in all these places. If FILE(STRINGS) is used with a text file, it will in most cases still work as expected, since it will only convert hex and srec files. If a user actually wants to get text out of hex files, he knows what he's doing and will see the hint in the documentation. Anyway, it should work without having to create a temporary file, will work on this later. Alex
* ENH: make the compiler id detection work, even if the output file name ofAlexander Neundorf2007-05-251-41/+37
| | | | | | | the compiler is completely unknown and even if it produces intel hex or motorola s-record files, with test Alex
* BUG: If the Fortran CompilerId source fails to compile it should not be a ↵Brad King2007-05-181-4/+6
| | | | failure. It is only expected to work for Fortran90 compilers.
* ENH: fix up compiler id to be more robustBill Hoffman2007-05-171-0/+11
|
* ENH: Merging CompilerId updates from branch CMake-Modules-CompilerId to the ↵Brad King2007-05-031-7/+8
| | | | main tree. Changes between CMake-Modules-CompilerId-mp1 and CMake-Modules-CompilerId-mp2 are included.
* STYLE: comment which says which variables this macro setsAlexander Neundorf2007-04-301-0/+2
| | | | Alex
* ENH: Merging CompilerId implementation from branch CMake-Modules-CompilerId ↵Brad King2007-04-281-0/+111
to the main tree. Changes between CMake-Modules-CompilerId-bp and CMake-Modules-CompilerId-mp1 are included.