mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user