Opened 4 years ago
Last modified 4 years ago
#5804 new defect
Fail early in premake when using an incorrect library version
Reported by: | Itms | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Build & Packages | Keywords: | |
Cc: | Patch: |
Description
On Linux, the version of libraries used to build 0ad depends on the package manager and on the user's preferences.
For a few libraries in which the API is not stable, we perform a version check at compile time (currently we do that for SpiderMonkey in source/scriptinterface/ScriptTypes.h, and NVTT after Phab:D2765 is committed).
This is not a good practice, as users may install or build an incorrect version of the lib before getting the error on the version check.
It is particularly cumbersome for maintainers of packages, or for users of any script which builds 0ad in a temporary environment.
We should perform such a check in premake (autoconf usually performs this kind of checks during configure
).
In 23974: