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/CheckCXXCompilerFlag.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/CheckCXXCompilerFlag.cmake')
-rw-r--r-- | Modules/CheckCXXCompilerFlag.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/CheckCXXCompilerFlag.cmake b/Modules/CheckCXXCompilerFlag.cmake index a872a75..5e8db03 100644 --- a/Modules/CheckCXXCompilerFlag.cmake +++ b/Modules/CheckCXXCompilerFlag.cmake @@ -2,9 +2,10 @@ # CHECK_CXX_COMPILER_FLAG(<flag> <var>) # <flag> - the compiler flag # <var> - variable to store the result -# This internally calls the check_cxx_source_compiles macro. See help -# for CheckCXXSourceCompiles for a listing of variables that can -# modify the build. +# This internally calls the check_cxx_source_compiles macro and +# sets CMAKE_REQUIRED_DEFINITIONS to <flag>. +# See help for CheckCXXSourceCompiles for a listing of variables +# that can otherwise modify the build. #============================================================================= # Copyright 2006-2010 Kitware, Inc. |