From 3e79d656dae810d501054ccaecf918e4c84318ef Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 25 Jul 2013 08:25:15 -0400 Subject: Check*CompilerFlag: Document use of CMAKE_REQUIRED_DEFINITIONS (#14309) Explain how CMAKE_REQUIRED_DEFINITIONS is set before calling the check_*_source_compiles macros. --- Modules/CheckCCompilerFlag.cmake | 5 +++-- Modules/CheckCXXCompilerFlag.cmake | 7 ++++--- 2 files changed, 7 insertions(+), 5 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( ) # - the compiler flag # - 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 . # 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. 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( ) # - the compiler flag # - 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 . +# See help for CheckCXXSourceCompiles for a listing of variables +# that can otherwise modify the build. #============================================================================= # Copyright 2006-2010 Kitware, Inc. -- cgit v0.12