Commit 24d6e75
committed
cmake: Fix fallback version number
OpusFilePackageVersion falls back to returning version 0 if
it cannot find an actual version number from git or a release.
However, CMakeLists.txt assumes the package version is at
least a two part x.y version number and so fails trying
to parse out the minor revision number when run from a
bare directory:
Opus Project version: 0
CMake Error at CMakeLists.txt:9 (list):
list index: 1 out of range (-1, 0)
Instead, return 0.0 as the project version. Addresses an
issue raised in #54
Signed-off-by: Tristan Matthews <[email protected]>1 parent 68030a5 commit 24d6e75
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments