[x265] [PATCH] fix RC version string error in MinGW
radhakrishnan at multicorewareinc.com
radhakrishnan at multicorewareinc.com
Wed Jan 2 12:29:24 CET 2019
# HG changeset patch
# User Radhakrishnan <radhakrishnan at multicorewareinc.com>
# Date 1546418753 -19800
# Wed Jan 02 14:15:53 2019 +0530
# Node ID a0e1f722d25634b9d5065d51c270a5a3d00d502c
# Parent 8f1c154aae5e3549eace74e152ab8d05179b7d8b
fix RC version string error in MinGW
diff -r 8f1c154aae5e -r a0e1f722d256 source/CMakeLists.txt
--- a/source/CMakeLists.txt Sat Dec 29 07:21:21 2018 +0100
+++ b/source/CMakeLists.txt Wed Jan 02 14:15:53 2019 +0530
@@ -578,7 +578,7 @@
# convert X265_LATEST_TAG (ex: 0.7) and X265_TAG_DISTANCE (ex: 103) to
# @X265_VERSION_MAJOR@, at X265_VERSION_MINOR@, at X265_BRANCH_ID@, at X265_TAG_DISTANCE@
- string(REPLACE "." ";" VERSION_LIST "${X265_LATEST_TAG}")
+ string(REGEX MATCHALL "([0-9]+)" VERSION_LIST "${X265_LATEST_TAG}")
list(GET VERSION_LIST 0 X265_VERSION_MAJOR)
list(GET VERSION_LIST 1 X265_VERSION_MINOR)
set(X265_BRANCH_ID 0) # TODO: 0 - stable, 1 - default or other
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 945 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190102/831e2c70/attachment.bin>
More information about the x265-devel
mailing list