|
|
commit 09334c51c753254001c335e258f42774022dd639
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Sep 17 09:56:45 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Sep 17 09:56:45 2022 +0200
Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION
documentation/CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git documentation/CMakeLists.txt documentation/CMakeLists.txt
index 1fe6d61..df23668 100644
--- documentation/CMakeLists.txt
+++ 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
)
[ Direct Link to Message ] | |
|
| |