Buildsystem: Use the git-executable variable as the command to run as well...

Thanks to Shauren and leak for pointing that out.
This commit is contained in:
click
2011-01-10 17:57:26 +01:00
parent 0f5d03211b
commit 5755ab14ac

View File

@@ -32,7 +32,7 @@ ensure_version( "${_REQUIRED_GIT_VERSION}" "${_GIT_VERSION}" _GIT_VERSION_OK)
if(_GIT_VERSION_OK)
execute_process(
COMMAND git describe --match init --dirty=+ --abbrev=12
COMMAND "${_GIT_EXEC}" describe --match init --dirty=+ --abbrev=12
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
OUTPUT_VARIABLE rev_info
OUTPUT_STRIP_TRAILING_WHITESPACE