Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION
This commit is contained in:
parent
eb314f5653
commit
09334c51c7
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user