[Cmake-commits] CMake branch, next, updated. v2.8.3-1325-ge6e1768
Brad King
brad.king at kitware.com
Wed Jan 12 08:58:56 EST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via e6e176821389f1e97c9badadab1c8225bae40fff (commit)
via 840f9c055cba5f587e42b9118d0b9924d396275e (commit)
from a3a490644c5d950680f5c5142131c41c075288a9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e6e176821389f1e97c9badadab1c8225bae40fff
commit e6e176821389f1e97c9badadab1c8225bae40fff
Merge: a3a4906 840f9c0
Author: Brad King <brad.king at kitware.com>
AuthorDate: Wed Jan 12 08:58:54 2011 -0500
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Jan 12 08:58:54 2011 -0500
Merge topic 'doc-CheckSymbolExists-enum' into next
840f9c0 Document CheckSymbolExists more clearly (#11685)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=840f9c055cba5f587e42b9118d0b9924d396275e
commit 840f9c055cba5f587e42b9118d0b9924d396275e
Author: Brad King <brad.king at kitware.com>
AuthorDate: Wed Jan 12 08:58:19 2011 -0500
Commit: Brad King <brad.king at kitware.com>
CommitDate: Wed Jan 12 08:58:19 2011 -0500
Document CheckSymbolExists more clearly (#11685)
The check works for macros, functions, and variables, but not for types
or enumeration values. Clearly describe the behavior of the check with
respect to each symbol type.
diff --git a/Modules/CheckSymbolExists.cmake b/Modules/CheckSymbolExists.cmake
index 40910f2..2237f35 100644
--- a/Modules/CheckSymbolExists.cmake
+++ b/Modules/CheckSymbolExists.cmake
@@ -1,9 +1,16 @@
-# - Check if the symbol exists in include files
-# CHECK_SYMBOL_EXISTS(SYMBOL FILES VARIABLE)
+# - Check if a symbol exists as a function, variable, or macro
+# CHECK_SYMBOL_EXISTS(<symbol> <files> <variable>)
#
-# SYMBOL - symbol
-# FILES - include files to check
-# VARIABLE - variable to return result
+# Check that the <symbol> is available after including given header
+# <files> and store the result in a <variable>. Specify the list
+# of files in one argument as a semicolon-separated list.
+#
+# If the header files define the symbol as a macro it is considered
+# available and assumed to work. If the header files declare the
+# symbol as a function or variable then the symbol must also be
+# available for linking. If the symbol is a type or enum value
+# it will not be recognized (consider using CheckTypeSize or
+# CheckCSourceCompiles).
#
# The following variables may be set before calling this macro to
# modify the way the check is run:
-----------------------------------------------------------------------
Summary of changes:
Modules/CheckSymbolExists.cmake | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list