summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCXXCompilerFlag.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/CheckCXXCompilerFlag.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/CheckCXXCompilerFlag.cmake')
-rw-r--r--Modules/CheckCXXCompilerFlag.cmake7
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.