From b7e06b471c08e70dce5b3aae4ecda7a80dd46447 Mon Sep 17 00:00:00 2001 From: James Edwards Date: Tue, 14 Feb 2017 15:30:40 -0600 Subject: [PATCH] Fix TeamCity builds using utils.cmake. Change-Id: Id15a911dad06643d9457cc4d8c907fc5796772ee --- runtime/cmake_modules/utils.cmake | 4 ++-- runtime/hsa-runtime/cmake_modules/utils.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/cmake_modules/utils.cmake b/runtime/cmake_modules/utils.cmake index 0d4dab6474..5b4e73ce23 100644 --- a/runtime/cmake_modules/utils.cmake +++ b/runtime/cmake_modules/utils.cmake @@ -53,7 +53,7 @@ function( parse_version VERSION_STRING ) endif () string ( REGEX MATCHALL "[0123456789]+" VERSIONS ${VERSION_STRING} ) - list (LENGTH VERSIONS VERSION_COUNT ) + list ( LENGTH VERSIONS VERSION_COUNT ) if ( ${VERSION_COUNT} GREATER 0) list ( GET VERSIONS 0 MAJOR ) @@ -73,7 +73,7 @@ function( parse_version VERSION_STRING ) set ( TEMP_VERSION_STRING "${TEMP_VERSION_STRING}.${PATCH}" ) endif () - if (DEFINED VERSION_BUILD ) + if ( DEFINED VERSION_BUILD ) set ( VERSION_BUILD "${VERSION_BUILD}" PARENT_SCOPE ) endif () diff --git a/runtime/hsa-runtime/cmake_modules/utils.cmake b/runtime/hsa-runtime/cmake_modules/utils.cmake index 0d4dab6474..5b4e73ce23 100644 --- a/runtime/hsa-runtime/cmake_modules/utils.cmake +++ b/runtime/hsa-runtime/cmake_modules/utils.cmake @@ -53,7 +53,7 @@ function( parse_version VERSION_STRING ) endif () string ( REGEX MATCHALL "[0123456789]+" VERSIONS ${VERSION_STRING} ) - list (LENGTH VERSIONS VERSION_COUNT ) + list ( LENGTH VERSIONS VERSION_COUNT ) if ( ${VERSION_COUNT} GREATER 0) list ( GET VERSIONS 0 MAJOR ) @@ -73,7 +73,7 @@ function( parse_version VERSION_STRING ) set ( TEMP_VERSION_STRING "${TEMP_VERSION_STRING}.${PATCH}" ) endif () - if (DEFINED VERSION_BUILD ) + if ( DEFINED VERSION_BUILD ) set ( VERSION_BUILD "${VERSION_BUILD}" PARENT_SCOPE ) endif ()