[x265] MSYS2/MinGW: RC version string syntax error

Mario Rohkrämer contact at ligh.de
Tue Jan 1 19:12:39 CET 2019


A patch suggested by wiiaboo, maintainer of media-autobuild_suite:  
https://0x0.st/s5C6.txt

+----
diff -r 8f1c154aae5e source/CMakeLists.txt
--- a/source/CMakeLists.txt	Sat Dec 29 07:21:21 2018 +0100
+++ b/source/CMakeLists.txt	Tue Jan 01 15:15:23 2019 +0000
@@ -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
+----

-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de


More information about the x265-devel mailing list