summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-17 19:02:21 (GMT)
committerBrad King <brad.king@kitware.com>2011-01-17 19:02:21 (GMT)
commit114c3224a4934c8f5bbfa0330451583a05383062 (patch)
treed6b9222f37d24e9144b23f11eb670f66b9762810
parent28a0403c3491d4a96f5dc827e54442a1d0a0dea7 (diff)
downloadCMake-114c3224a4934c8f5bbfa0330451583a05383062.zip
CMake-114c3224a4934c8f5bbfa0330451583a05383062.tar.gz
CMake-114c3224a4934c8f5bbfa0330451583a05383062.tar.bz2
Document CheckFunctionExists more clearly (#10044)
State that the function need only be available at link time. Refer to CheckSymbolExists for verifying that a declaration exists.
-rw-r--r--Modules/CheckFunctionExists.cmake14
1 files changed, 8 insertions, 6 deletions
diff --git a/Modules/CheckFunctionExists.cmake b/Modules/CheckFunctionExists.cmake
index e1a1777..0ba36d9 100644
--- a/Modules/CheckFunctionExists.cmake
+++ b/Modules/CheckFunctionExists.cmake
@@ -1,8 +1,10 @@
-# - Check if the function exists.
-# CHECK_FUNCTION_EXISTS(FUNCTION VARIABLE)
-# - macro which checks if the function exists
-# FUNCTION - the name of the function
-# VARIABLE - variable to store the result
+# - Check if a C function can be linked
+# CHECK_FUNCTION_EXISTS(<function> <variable>)
+#
+# Check that the <function> is provided by libraries on the system and
+# store the result in a <variable>. This does not verify that any
+# system header file declares the function, only that it can be found
+# at link time (considure using CheckSymbolExists).
#
# The following variables may be set before calling this macro to
# modify the way the check is run:
@@ -13,7 +15,7 @@
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
#=============================================================================
-# Copyright 2002-2009 Kitware, Inc.
+# Copyright 2002-2011 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.