summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-19 19:02:38 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-01-19 19:02:38 (GMT)
commitef27b9cd899713373c6888ed55fb19420f0f5bb8 (patch)
tree64f80123817e84e9133960b670b31735e8559682 /Modules
parent3b900dbd093e804c17ecee34c64b1380275f1138 (diff)
parent4995b267b7b879e2577df8316ef30ce7e83714a1 (diff)
downloadCMake-ef27b9cd899713373c6888ed55fb19420f0f5bb8.zip
CMake-ef27b9cd899713373c6888ed55fb19420f0f5bb8.tar.gz
CMake-ef27b9cd899713373c6888ed55fb19420f0f5bb8.tar.bz2
Merge topic 'doc-CheckSymbolExists-enum'
4995b26 Update CheckSymbolExists copyright year 840f9c0 Document CheckSymbolExists more clearly (#11685)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckSymbolExists.cmake19
1 files changed, 13 insertions, 6 deletions
diff --git a/Modules/CheckSymbolExists.cmake b/Modules/CheckSymbolExists.cmake
index 40910f2..e86604b 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:
@@ -14,7 +21,7 @@
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
#=============================================================================
-# Copyright 2003-2009 Kitware, Inc.
+# Copyright 2003-2011 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.