[x265] PATCH: cmake. Fix issue #56. Correct hg path for windows.

Steve Borho steve at borho.org
Wed May 21 14:10:44 CEST 2014


On Tue, May 20, 2014 at 6:08 PM, den c <dncodr at gmail.com> wrote:
> # HG changeset patch
> # User Den Scherbin <dncodr at gmail.com>
> # Date 1400627084 -10800
> #      Wed May 21 02:04:44 2014 +0300
> # Node ID 1ed48eced207da74a4956b7fab8a410ddd6f27c7
> # Parent  a13534aa7c6b386dbb01e82778cdf45a2cde3248
> cmake: Fix issue #56. Correct hg path for windows.

Thanks, pushed with white-space and comment improvements.

>
> diff -r a13534aa7c6b -r 1ed48eced207 source/cmake/version.cmake
> --- a/source/cmake/version.cmake        Tue May 20 15:00:21 2014 -0500
> +++ b/source/cmake/version.cmake        Wed May 21 02:04:44 2014 +0300
> @@ -30,6 +30,12 @@
>          set(X265_VERSION "${hg_latesttag}+${hg_latesttagdistance}-${hg_id}")
>      endif()
>  elseif(HG_EXECUTABLE AND EXISTS ${CMAKE_SOURCE_DIR}/../.hg)
> +       #windows check
> +       if(EXISTS "${HG_EXECUTABLE}.bat")
> +               set(HG_EXECUTABLE "${HG_EXECUTABLE}.bat")
> +       endif()
> +       message(STATUS "hg found at ${HG_EXECUTABLE}")
> +
>      execute_process(COMMAND
>          ${HG_EXECUTABLE} log -r. --template "{latesttag}"
>          WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel



-- 
Steve Borho


More information about the x265-devel mailing list