summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeTestCCompiler.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-1/+1
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Avoid clobbering variable 'OUTPUT' in compiler tests (#12628)Brad King2011-12-151-4/+5
| | | | Use an obscure name and clean up afterwards.
* Load platform files that need to know the ABI when possibleBrad King2011-12-051-0/+6
| | | | | | | | Load platform files named in CMAKE_<lang>_ABI_FILES for each language once the ABI sizeof(void*) is known. During the first configuration this is after the test for working compiler and ABI detection checks. During later configurations the ABI information is immediately available because it has been saved in CMake<lang>Compiler.cmake.
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Load compiler information after configuring itBrad King2010-05-061-0/+1
| | | | | | | | | | | After configuring CMakeFiles/CMake<lang>Compiler.cmake in the build tree the second time (to store ABI information), include it immediately. This allows any logic and settings in the compiler information files to be used without duplicating it in CMakeDetermineCompilerABI.cmake. The change in commit "Use Fortran ABI detection results conservatively" (2010-05-05) needs this to use the same logic to set CMAKE_SIZEOF_VOID_P during first and later runs of CMake.
* Make a common function that prints the status during the checks for working ↵David Cole2010-02-121-3/+5
| | | | compilers. Call it from all of the CMakeTesten_US.UTF-8Compiler.cmake files. In the message, print the full path to the tested compiler only for the Makefile generators. For Xcode and Visual Studio generators, print the generator instead so that users are not misled with the full path to a compiler that the generator may not even use. Xcode and Visual Studio have their own mechanisms for choosing the compiler to use during try_compile and build...
* 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: remove warning in test of compiler so -Werror does not failBill Hoffman2009-06-221-1/+1
|
* BUG: fix cmake so that if you configure with a bad env for cl, then with a ↵Bill Hoffman2009-04-181-0/+5
| | | | good path, it will configure correctly
* ENH: Remove unnecessary compiler force macros. The compiler ID can now be ↵Brad King2008-02-141-1/+1
| | | | detected without linking an executable.
* BUG: When configuring compiler information files into the CMakeFiles ↵Brad King2008-02-041-1/+1
| | | | directory in the project build tree, use IMMEDIATE option for CONFIGURE_FILE explicitly. It is needed in case the user sets CMAKE_BACKWARDS_COMPATIBILITY to 2.0 or lower.
* BUG: When forcing the C and CXX compilers do not try to detect the ABI ↵Brad King2008-02-031-8/+13
| | | | information. Cleanup configured language compiler info files by always using @ONLY. This addresses bug#6297.
* ENH: Generalize the check for sizeof void* to detect more ABI information.Brad King2008-01-211-8/+9
|
* ENH: merge CMake-CrossCompileBasic to HEADAlexander Neundorf2007-05-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | -add a RESULT_VARIABLE to INCLUDE() -add CMAKE_TOOLCHAIN_FILE for specifiying your (potentially crosscompiling) toolchain -have TRY_RUN() complain if you try to use it in crosscompiling mode (which were compiled but cannot run on this system) -use CMAKE_EXECUTABLE_SUFFIX in TRY_RUN(), probably TRY_RUN won't be able to run the executables if they have a different suffix because they are probably crosscompiled, but nevertheless it should be able to find them -make several cmake variables presettable by the user: CMAKE_C/CXX_COMPILER, CMAKE_C/CXX_OUTPUT_EXTENSION, CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_INFO_FILE -support prefix for GNU toolchains (arm-elf-gcc, arm-elf-ar, arm-elf-strip etc.) -move ranlib on OSX from the file command to a command in executed in cmake_install.cmake -add support for stripping during install in cmake_install.cmake -split out cl.cmake from Windows-cl.cmake, first (very incomplete) step to support MS crosscompiling tools -remove stdio.h from the simple C program which checks if the compiler works, since this may not exist for some embedded platforms -create a new CMakeFindBinUtils.cmake which collects the search fro ar, ranlib, strip, ld, link, install_name_tool and other tools like these -add support for CMAKE_FIND_ROOT_PATH for all FIND_XXX commands, which is a list of directories which will be prepended to all search directories, right now as a cmake variable, turning it into a global cmake property may need some more work -remove cmTestTestHandler::TryExecutable(), it's unused -split cmFileCommand::HandleInstall() into slightly smaller functions Alex
* COMP: More warnings and hp issuesAndy Cedilnik2006-07-261-1/+8
|
* COMP: Handle both ansi and non-ansi CAndy Cedilnik2006-07-261-1/+2
|
* ENH: centralized locaiton of CMakeFiles settingKen Martin2006-06-141-5/+5
|
* ENH: put CmakeTmp into CMakeFilesKen Martin2006-01-121-2/+2
|
* ENH: add documentation support for modulesBill Hoffman2005-12-141-0/+1
|
* BUG: fix SIZEOF VOIDP problemBill Hoffman2005-11-141-0/+6
|
* BUG: Need to test void* not "void *" because the Intel compiler icc expands ↵Brad King2005-08-191-1/+2
| | | | the asterisk. Thanks to Filipe Sousa for the patch.
* ENH: put cmake files intoa CMakeFiles subdir to clean up bin treeKen Martin2005-07-291-2/+2
|
* BUG: try to address Bug 1673 .Bill Hoffman2005-04-051-0/+2
|
* ENH: stuff to keep compiler tests from re-running all the timeBill Hoffman2005-01-201-5/+9
|
* BUG#530: Using #error to report a nice error message if the C compiler is ↵Brad King2004-01-211-1/+5
| | | | set to a C++ compiler.
* BUG#411: Re-ordering statements so errors show up in CMakeError.log.Brad King2003-12-011-3/+3
|
* ERR: Fixed typo in comment.Brad King2003-08-271-1/+1
|
* ENH: add the unix makefile generator as an option from the windows GUI, this ↵Bill Hoffman2003-08-211-1/+1
| | | | builds with mingw, cygwin, and combinations of make cl, bcc32
* ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. ↵Andy Cedilnik2003-08-081-0/+6
| | | | Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log
* ERR: Fixed typeo tests->test.Brad King2003-08-041-1/+1
|
* ENH: Extra new line after outputAndy Cedilnik2003-07-171-1/+1
|
* ENH: Replace WRITE_FILE with FILE(WRITE and FILE(APPEND. Replace ↵Andy Cedilnik2003-07-111-8/+8
| | | | MAKE_DIRECTORY with FILE(MAKE_DIRECTORY, replace STRING(ASCII things
* ENH: only run test for working c and cxx compiler onceBill Hoffman2003-01-221-5/+8
|
* add a fatal error, and make sure c and c++ compilers work before using themBill Hoffman2003-01-211-0/+19