diff --git a/runtime/hsa-runtime/CMakeLists.txt b/runtime/hsa-runtime/CMakeLists.txt index 37a9b09f5f..40966c3f04 100644 --- a/runtime/hsa-runtime/CMakeLists.txt +++ b/runtime/hsa-runtime/CMakeLists.txt @@ -72,8 +72,8 @@ if ( HAVE_MEMFD_CREATE ) add_definitions ( -DHAVE_MEMFD_CREATE ) endif() -## Get the package version. The defaults to 1.0.0. -get_version ( "1.0.0" ) +## Get the package version. +get_version ( "1.1.9" ) set ( BUILD_VERSION_MAJOR ${VERSION_MAJOR} ) set ( BUILD_VERSION_MINOR ${VERSION_MINOR} ) diff --git a/runtime/hsa-runtime/cmake_modules/utils.cmake b/runtime/hsa-runtime/cmake_modules/utils.cmake index 096b3de7b7..74ce4389cc 100644 --- a/runtime/hsa-runtime/cmake_modules/utils.cmake +++ b/runtime/hsa-runtime/cmake_modules/utils.cmake @@ -89,23 +89,23 @@ function ( get_version DEFAULT_VERSION_STRING ) parse_version ( ${DEFAULT_VERSION_STRING} ) - find_program ( GIT NAMES git ) - - if ( GIT ) - - execute_process ( COMMAND git describe --tags --dirty --long - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - OUTPUT_VARIABLE GIT_TAG_STRING - OUTPUT_STRIP_TRAILING_WHITESPACE - RESULT_VARIABLE RESULT ) - - if ( ${RESULT} EQUAL 0 ) - - parse_version ( ${GIT_TAG_STRING} ) - - endif () - - endif () +## find_program ( GIT NAMES git ) +## +## if ( GIT ) +## +## execute_process ( COMMAND git describe --tags --dirty --long +## WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +## OUTPUT_VARIABLE GIT_TAG_STRING +## OUTPUT_STRIP_TRAILING_WHITESPACE +## RESULT_VARIABLE RESULT ) +## +## if ( ${RESULT} EQUAL 0 ) +## +## parse_version ( ${GIT_TAG_STRING} ) +## +## endif () +## +## endif () set( VERSION_STRING "${VERSION_STRING}" PARENT_SCOPE ) set( VERSION_MAJOR "${VERSION_MAJOR}" PARENT_SCOPE )