summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCCompilerFlag.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Improve checks for Open64 and g++ incompatible flags (#12119)Matthias Kretz2012-02-121-0/+2
|
* CheckCCompilerFlag: Generalize "but not for C" case (#12633)Brad King2011-12-221-3/+2
| | | | | The "warning: " part is not necessary. The case can happen on any GNU compiler, not just an Apple version.
* Fix CHECK_(C|CXX)_COMPILER_FLAG for Clang (#12394)Brad King2011-08-081-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.
* Add fail regex to detect supported warning flags correctly.David Cole2011-07-271-1/+2
| | | | | | | | | | On Apple's gcc, the compiler emits a warning such as "warning: command line option "-Wno-deprecated" is valid for C++/ObjC++ but not for C" when it is passed that flag on its command line. When testing for that flag with a plain C file, we should report that the flag is unsupported for C files. The new FAIL_REGEX option added here produces this behavior.
* 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