1
0
Эх сурвалжийг харах

cmake: Fix buildspec version parsing for dependencies

VERSION comparison requires semver-compliant version strings, but
obs-deps versions are based on dates, which are not compliant. Fix
version strings to semver variants before comparison.
PatTheMav 2 жил өмнө
parent
commit
9f191b5101

+ 2 - 0
cmake/macos/buildspec.cmake

@@ -19,6 +19,8 @@ macro(_check_deps_version version)
 
       file(READ "${path}/share/obs-deps/VERSION" _check_version)
       string(REPLACE "\n" "" _check_version "${_check_version}")
+      string(REPLACE "-" "." _check_version "${_check_version}")
+      string(REPLACE "-" "." version "${version}")
 
       if(_check_version VERSION_EQUAL version)
         set(found TRUE)