summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCCompilerFlag.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CheckCCompilerFlag: Strict signature of 'main' (#11615)Brad King2010-12-161-1/+1
| | | | | | Use "int main(void)" instead of just "int main()" so that compiling with "gcc -Werror=strict-prototypes" works. Test this check using the flags "-Werror -Wstrict-prototypes" to work with old GCC versions.
* BUG: Fix compiler flag test for non-English MSVC (#11336)Brad King2010-11-041-1/+2
| | | | Approach suggested by John Stark.
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Convert CMake non-find modules to BSD LicenseBrad King2009-09-281-4/+12
| | | | | | | 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.
* Fix CHECK_(C|CXX)_COMPILER_FLAG for XL and SunProBrad King2009-09-181-1/+3
| | | | | | These compilers warn and return 0 for unrecognized flags. We fix the compiler flag check macros by looking for a warning in the output. We also update the regex for GNU on older Macs. See issue #9516.
* Fix CHECK_(C|CXX)_COMPILER_FLAG for HPBrad King2009-09-171-0/+1
| | | | | | This compiler warns and returns 0 for unrecognized flags. We fix the compiler flag check macros by looking for a warning in the output. See issue #9516.
* Fix CHECK_(C|CXX)_COMPILER_FLAG for GNU and MSVCBrad King2009-09-171-1/+5
| | | | | | These compilers warn and return 0 for unrecognized flags. We fix the compiler flag check macros by looking for a warning in the output. See issue #9516.
* Cleanup generic compiler check macro documentationBrad King2009-09-171-8/+6
| | | | | | | | | | | | | | | This commit improves formatting and style of the documentation for the general-purpose compiler check macros: CHECK_C_COMPILER_FLAG CHECK_C_SOURCE_COMPILES CHECK_C_SOURCE_RUNS CHECK_CXX_COMPILER_FLAG CHECK_CXX_SOURCE_COMPILES CHECK_CXX_SOURCE_RUNS This sytle is more consistent with CMake command documentation. It also looks nicer in the generated documentation text files.
* ENH: fix docs, bug 7590Bill Hoffman2008-09-091-0/+4
|
* ENH: two macros to check whether the C/CXX compiler supports a given flag:Alexander Neundorf2006-09-181-0/+21
CHECK_CXX_COMPILER_FLAG("-Wall" COMPILER_SUPPORTS_WALL) Alex