summaryrefslogtreecommitdiff
path: root/Modules/CheckFunctionExists.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2017-09-29 02:37:00 +0200
committerCristian Adam <cristian.adam@gmail.com>2017-12-01 13:05:02 +0200
commit4d611868dfe37e73aaba4cdfde37b17e8a2ec7c1 (patch)
tree92babc3335bb767110ef9dc0aff81e464fab35bd /Modules/CheckFunctionExists.cmake
parent65f21a7eadc2144f0c85cd883cf63a6eb7681528 (diff)
downloadcmake-4d611868dfe37e73aaba4cdfde37b17e8a2ec7c1.tar.gz
Check*: Added include guards
Diffstat (limited to 'Modules/CheckFunctionExists.cmake')
-rw-r--r--Modules/CheckFunctionExists.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckFunctionExists.cmake b/Modules/CheckFunctionExists.cmake
index ef080621d6..d00aa8ade9 100644
--- a/Modules/CheckFunctionExists.cmake
+++ b/Modules/CheckFunctionExists.cmake
@@ -38,6 +38,8 @@
# * ``check_function_exists()`` only verifies linking, it does not verify
# that the function is declared in system headers.
+include_guard(GLOBAL)
+
macro(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
if(NOT DEFINED "${VARIABLE}" OR "x${${VARIABLE}}" STREQUAL "x${VARIABLE}")
set(MACRO_CHECK_FUNCTION_DEFINITIONS