mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
cmake: Fix parsing of OBS_VERSION_OVERRIDE cache variable
This commit is contained in:
parent
50d1b5ccb4
commit
3bfaf6661b
|
@ -46,7 +46,8 @@ if(NOT DEFINED OBS_VERSION_OVERRIDE)
|
|||
endif()
|
||||
else()
|
||||
if(OBS_VERSION_OVERRIDE MATCHES "([0-9]+)\\.([0-9]+)\\.([0-9]+).*")
|
||||
string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1;\\2;\\3" _obs_version_canonical ${_obs_version})
|
||||
string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1;\\2;\\3" _obs_version_canonical
|
||||
${OBS_VERSION_OVERRIDE})
|
||||
set(_obs_version ${OBS_VERSION_OVERRIDE})
|
||||
else()
|
||||
message(FATAL_ERROR "Invalid version supplied - must be <MAJOR>.<MINOR>.<PATCH>.")
|
||||
|
|
Loading…
Reference in a new issue