Cmake: Some more tweaks to building from branch without upstream

This commit is contained in:
Sergey Sharybin 2015-03-20 14:07:56 +05:00
parent 6f51df5384
commit 03d945095a
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/)
execute_process(COMMAND git rev-parse --short @{u}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE MY_WC_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE)
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET)
endif()
endif()
set(BUILD_REV ${MY_WC_HASH})