diff --git a/indra/cmake/BuildVersion.cmake b/indra/cmake/BuildVersion.cmake index e618a988b831e3cdf818bdcc43964a74f4b5acba..0f0ca27116f46e48691ce3c881fa10466ecb583e 100755 --- a/indra/cmake/BuildVersion.cmake +++ b/indra/cmake/BuildVersion.cmake @@ -20,9 +20,8 @@ if (NOT DEFINED VIEWER_SHORT_VERSION) # will be true in indra/, false in indra/n find_program(SED sed) if (DEFINED MERCURIAL AND DEFINED WORDCOUNT AND DEFINED SED) execute_process( - COMMAND ${MERCURIAL} log -r tip:0 --template '\\n' - COMMAND ${WORDCOUNT} -l - COMMAND ${SED} "s/ //g" + COMMAND ${MERCURIAL} identify -n + COMMAND ${SED} "s/+//" OUTPUT_VARIABLE VIEWER_VERSION_REVISION OUTPUT_STRIP_TRAILING_WHITESPACE )