Fix cmake project parameters

This commit is contained in:
ReenigneArcher 2022-05-06 14:39:26 -04:00
commit a3e3da3136
3 changed files with 5 additions and 5 deletions

View file

@ -27,7 +27,7 @@ author = 'ReenigneArcher'
# The full version, including alpha/beta/rc tags
with open(os.path.join(root_dir, 'CMakeLists.txt'), 'r') as f:
version = re.search(r"project\(Sunshine \[VERSION ((\d+)\.(\d+)\.(\d+))\]", str(f.read())).group(1)
version = re.search(r"project\(Sunshine VERSION ((\d+)\.(\d+)\.(\d+))", str(f.read())).group(1)
"""
To use cmake method for obtaining version instead of regex,
1. Within CMakeLists.txt add the following line without backticks: