From f902a37ae3e4faebb9a555274a287f31228490a5 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Tue, 10 Jul 2018 20:19:04 -0500 Subject: [PATCH] Fix git describe command to retrieve version tags correctly. Change-Id: I904f5ccdb88c1e28d5eeffd104174fcd57626ee7 [ROCm/ROCR-Runtime commit: c6cf161125f92f1f0f4c54f7e5b1d032e61e8c9c] --- .../rocr-runtime/runtime/hsa-runtime/cmake_modules/utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/cmake_modules/utils.cmake b/projects/rocr-runtime/runtime/hsa-runtime/cmake_modules/utils.cmake index 5b4e73ce23..096b3de7b7 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/cmake_modules/utils.cmake +++ b/projects/rocr-runtime/runtime/hsa-runtime/cmake_modules/utils.cmake @@ -93,7 +93,7 @@ function ( get_version DEFAULT_VERSION_STRING ) if ( GIT ) - execute_process ( COMMAND git describe --dirty --long --match [0-9]* + execute_process ( COMMAND git describe --tags --dirty --long WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GIT_TAG_STRING OUTPUT_STRIP_TRAILING_WHITESPACE