Check*CompilerFlag: Document use of CMAKE_REQUIRED_DEFINITIONS (#14309)
Explain how CMAKE_REQUIRED_DEFINITIONS is set before calling the check_*_source_compiles macros.
This commit is contained in:
parent
828ddb6813
commit
3e79d656da
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue