mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Fix annoying precompiler limitation/bug in version sandbox logic.
This commit is contained in:
parent
79ec192051
commit
62b5ba3a60
@ -46,7 +46,8 @@ QString getPrereleaseSuffix()
|
|||||||
// Otherwise it's a development build, which will be identified by its branch in most cases.
|
// Otherwise it's a development build, which will be identified by its branch in most cases.
|
||||||
#ifdef GIT_BRANCH
|
#ifdef GIT_BRANCH
|
||||||
suffix = "-" GIT_BRANCH;
|
suffix = "-" GIT_BRANCH;
|
||||||
#elif GIT_REVISION
|
#else
|
||||||
|
#ifdef GIT_REVISION
|
||||||
// If we've checked out an older version, we're in a headless state and not on any branch.
|
// If we've checked out an older version, we're in a headless state and not on any branch.
|
||||||
// If the older version was a previous testing release, it should be tagged, in which case
|
// If the older version was a previous testing release, it should be tagged, in which case
|
||||||
// it's treated as a testing release above.
|
// it's treated as a testing release above.
|
||||||
@ -58,6 +59,7 @@ QString getPrereleaseSuffix()
|
|||||||
// revision information. Just put it in an "-unreleased" sandbox.
|
// revision information. Just put it in an "-unreleased" sandbox.
|
||||||
suffix = "-unreleased";
|
suffix = "-unreleased";
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user