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

den c dncodr at gmail.com
Wed May 21 01:08:32 CEST 2014


# 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.

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}


More information about the x265-devel mailing list