Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION

This commit is contained in:
ManoloFLTK 2022-09-17 09:56:45 +02:00
parent eb314f5653
commit 09334c51c7

View File

@ -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
)