summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCCompilerFlag.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-25 12:25:15 (GMT)
committerBrad King <brad.king@kitware.com>2013-07-25 12:25:15 (GMT)
commit3e79d656dae810d501054ccaecf918e4c84318ef (patch)
tree8d1c82f9d9e4ae0c14325bf2dd1782e26e8b0f50 /Modules/CheckCCompilerFlag.cmake
parent828ddb68139a080594c2e6a96d57cb9e93d2ccb3 (diff)
downloadCMake-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.cmake5
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.