aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2014-04-30 14:06:59 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2014-04-30 14:06:59 -0700
commit717fd5564d71120a9d7482204bb43d0c449989f5 (patch)
treebcd6fa4c6824dd1ff63dda7ff5894e6310e5b592 /host/cmake
parente63ca8221a301dc96730c3cae6df922ee411c2da (diff)
parent63edfdf43051900c81d4e531ac852edeeb7a95ab (diff)
downloaduhd-717fd5564d71120a9d7482204bb43d0c449989f5.tar.gz
uhd-717fd5564d71120a9d7482204bb43d0c449989f5.tar.bz2
uhd-717fd5564d71120a9d7482204bb43d0c449989f5.zip
Merge branch 'maint'
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/UHDVersion.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake
index 0fc12d257..00b3029ea 100644
--- a/host/cmake/Modules/UHDVersion.cmake
+++ b/host/cmake/Modules/UHDVersion.cmake
@@ -63,12 +63,12 @@ EXECUTE_PROCESS(
IF(_git_describe_result EQUAL 0)
EXECUTE_PROCESS(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
- COMMAND ${PYTHON_EXECUTABLE} -c "print '${_git_describe}'.split('-')[1]"
+ COMMAND ${PYTHON_EXECUTABLE} -c "print '${_git_describe}'.split('-')[-2]"
OUTPUT_VARIABLE UHD_GIT_COUNT OUTPUT_STRIP_TRAILING_WHITESPACE
)
EXECUTE_PROCESS(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
- COMMAND ${PYTHON_EXECUTABLE} -c "print '${_git_describe}'.split('-')[2]"
+ COMMAND ${PYTHON_EXECUTABLE} -c "print '${_git_describe}'.split('-')[-1]"
OUTPUT_VARIABLE UHD_GIT_HASH OUTPUT_STRIP_TRAILING_WHITESPACE
)
ENDIF()