diff options
author | Brad King <brad.king@kitware.com> | 2013-07-25 12:25:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-25 12:25:15 (GMT) |
commit | 3e79d656dae810d501054ccaecf918e4c84318ef (patch) | |
tree | 8d1c82f9d9e4ae0c14325bf2dd1782e26e8b0f50 /Modules/CheckCCompilerFlag.cmake | |
parent | 828ddb68139a080594c2e6a96d57cb9e93d2ccb3 (diff) | |
download | CMake-3e79d656dae810d501054ccaecf918e4c84318ef.zip CMake-3e79d656dae810d501054ccaecf918e4c84318ef.tar.gz CMake-3e79d656dae810d501054ccaecf918e4c84318ef.tar.bz2 |
Check*CompilerFlag: Document use of CMAKE_REQUIRED_DEFINITIONS (#14309)
Explain how CMAKE_REQUIRED_DEFINITIONS is set before calling the
check_*_source_compiles macros.
Diffstat (limited to 'Modules/CheckCCompilerFlag.cmake')
-rw-r--r-- | Modules/CheckCCompilerFlag.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CheckCCompilerFlag.cmake b/Modules/CheckCCompilerFlag.cmake index 02f7cb6..2213acc 100644 --- a/Modules/CheckCCompilerFlag.cmake +++ b/Modules/CheckCCompilerFlag.cmake @@ -2,9 +2,10 @@ # CHECK_C_COMPILER_FLAG(<flag> <var>) # <flag> - the compiler flag # <var> - variable to store the result -# This internally calls the check_c_source_compiles macro. +# This internally calls the check_c_source_compiles macro and +# sets CMAKE_REQUIRED_DEFINITIONS to <flag>. # See help for CheckCSourceCompiles for a listing of variables -# that can modify the build. +# that can otherwise modify the build. #============================================================================= # Copyright 2006-2011 Kitware, Inc. |