summaryrefslogtreecommitdiffstats
path: root/Modules/CheckVariableExists.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-11-02 18:51:59 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-11-02 18:51:59 (GMT)
commit0a5b9db60b8411bb3b063e627ff317b34609562a (patch)
treef56e60fc91354a80caf71ee210cc6bcda8ebf282 /Modules/CheckVariableExists.cmake
parent35b529cc3e4dde27ec1c873eefb919c16c089dad (diff)
downloadCMake-0a5b9db60b8411bb3b063e627ff317b34609562a.zip
CMake-0a5b9db60b8411bb3b063e627ff317b34609562a.tar.gz
CMake-0a5b9db60b8411bb3b063e627ff317b34609562a.tar.bz2
DOC: better documentaiton
Diffstat (limited to 'Modules/CheckVariableExists.cmake')
-rw-r--r--Modules/CheckVariableExists.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/CheckVariableExists.cmake b/Modules/CheckVariableExists.cmake
index 14fdcd2..ed1dfb3 100644
--- a/Modules/CheckVariableExists.cmake
+++ b/Modules/CheckVariableExists.cmake
@@ -4,7 +4,12 @@
# VAR - the name of the variable
# VARIABLE - variable to store the result
#
-
+# If CMAKE_REQUIRED_FLAGS is set then those flags will be passed into the
+# compile of the program likewise if CMAKE_REQUIRED_LIBRARIES is set then
+# those libraries will be linked against the test program
+#
+# only for C variables
+#
MACRO(CHECK_VARIABLE_EXISTS VAR VARIABLE)
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
SET(MACRO_CHECK_VARIABLE_DEFINITIONS