summaryrefslogtreecommitdiffstats
path: root/Modules/CheckVariableExists.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-04 15:52:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-12-04 15:52:47 (GMT)
commitd5681e353ad94db8cfd0343bd50b090a6cda8c71 (patch)
tree53b1a78e84d832c9a5862004cc6917704e0b5573 /Modules/CheckVariableExists.cmake
parent8c97382c8e2f5699be72089371c67949c7e49461 (diff)
parent4d611868dfe37e73aaba4cdfde37b17e8a2ec7c1 (diff)
downloadCMake-d5681e353ad94db8cfd0343bd50b090a6cda8c71.zip
CMake-d5681e353ad94db8cfd0343bd50b090a6cda8c71.tar.gz
CMake-d5681e353ad94db8cfd0343bd50b090a6cda8c71.tar.bz2
Merge topic 'pragma-once'
4d611868 Check*: Added include guards Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1327
Diffstat (limited to 'Modules/CheckVariableExists.cmake')
-rw-r--r--Modules/CheckVariableExists.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckVariableExists.cmake b/Modules/CheckVariableExists.cmake
index fd5c36c..ab456d1 100644
--- a/Modules/CheckVariableExists.cmake
+++ b/Modules/CheckVariableExists.cmake
@@ -32,6 +32,8 @@
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
# CMAKE_REQUIRED_QUIET = execute quietly without messages
+include_guard(GLOBAL)
+
macro(CHECK_VARIABLE_EXISTS VAR VARIABLE)
if(NOT DEFINED "${VARIABLE}")
set(MACRO_CHECK_VARIABLE_DEFINITIONS