Document Check(C|CXX)SourceCompiles behavior more clearly (#11688)

Explicitly state up front that the macros try to link an executable and
that the source provided must define 'main'.
This commit is contained in:
Brad King 2011-01-14 07:36:59 -05:00
parent 4da2a5687b
commit cabb6cd00e
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# - Check if the given C source code compiles.
# - Check if given C source compiles and links into an executable
# CHECK_C_SOURCE_COMPILES(<code> <var> [FAIL_REGEX <fail-regex>])
# <code> - source code to try to compile
# <code> - source code to try to compile, must define 'main'
# <var> - variable to store whether the source code compiled
# <fail-regex> - fail if test output matches this regex
# The following variables may be set before calling this macro to

View File

@ -1,6 +1,6 @@
# - Check if the given C++ source code compiles.
# - Check if given C++ source compiles and links into an executable
# CHECK_CXX_SOURCE_COMPILES(<code> <var> [FAIL_REGEX <fail-regex>])
# <code> - source code to try to compile
# <code> - source code to try to compile, must define 'main'
# <var> - variable to store whether the source code compiled
# <fail-regex> - fail if test output matches this regex
# The following variables may be set before calling this macro to