WSL/SLF GitLab Repository

Commit 9ed923e5 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Fixed a bug when retrieving git version number

parent f83168a7
......@@ -42,7 +42,7 @@ MACRO(BuildVersionGIT)
IF(VERSION_FROM_GIT)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
WORKING_DIRECTORY "${local_dir}"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
OUTPUT_VARIABLE project_WC_REVISION
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment