summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-17 09:56:45 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-17 09:56:45 +0200
commit09334c51c753254001c335e258f42774022dd639 (patch)
tree94da5e3c6f27fe689d9f3ef851cd97f8ee356737
parenteb314f565340ff69922710d281d02b709ca77548 (diff)
Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION
-rw-r--r--documentation/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
index 1fe6d615e..df236683e 100644
--- a/documentation/CMakeLists.txt
+++ b/documentation/CMakeLists.txt
@@ -44,7 +44,8 @@ if (GENERATE_DOCS)
OUTPUT_VARIABLE CURRENT_DATE
)
- execute_process (COMMAND git rev-parse --short=10 HEAD
+ execute_process (COMMAND
+ git --git-dir=${CMAKE_SOURCE_DIR}/.git rev-parse --short=10 HEAD
OUTPUT_VARIABLE GIT_REVISION
)