summaryrefslogtreecommitdiffhomepage
path: root/cmake/GetGitRevisionDescription.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/GetGitRevisionDescription.cmake.in')
-rw-r--r--cmake/GetGitRevisionDescription.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/GetGitRevisionDescription.cmake.in b/cmake/GetGitRevisionDescription.cmake.in
index 888ce13a..032dda66 100644
--- a/cmake/GetGitRevisionDescription.cmake.in
+++ b/cmake/GetGitRevisionDescription.cmake.in
@@ -13,6 +13,8 @@
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
+include_guard(GLOBAL)
+
set(HEAD_HASH)
file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024)