-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build system complains about uncloned submodules for bundled dependencies even when using dependencies from system #891
Comments
This is a bug: the CMakeLists are set up as though you're always building from git (hence the admonition to run |
@JayFoxRox , @Spiller, so the ask here is to only throw an error if the submodule is necessary? It would be nice if GitHub release tarballs recursively packed the submodules. GitHub doesn't provide such easy option, but it's possible to achieve the same via GitHub Actions, for example, https://github.com/Return-To-The-Roots/s25client/blob/a24429ffa9426557304144d523729013da3799f4/.github/workflows/release.yml |
Yes. Precisely. |
I took a slightly different tack: even if the submodule is used, allow CMake to search for the system version instead of insisting that a submodule be present under thirdparty/. If any of the thirdparty/ modules are missing, the user will receive a warning to I think this will make it much easier to build apitrace packages for a distribution that already ships separate packages for most or all of these dependencies, as well as to simply build from apitrace's point-release tarballs (on such a distribution) without having to sync with the git repos. In other words, it shifts the assumption that the default user is /not/ cloning apitrace from git. |
First system dependencies are searched (which is good):
apitrace/CMakeLists.txt
Lines 535 to 562 in 00706d1
Then submodules must exist regardless (which is bad):
apitrace/thirdparty/CMakeLists.txt
Lines 19 to 36 in 00706d1
But then most of those folders can probably be skipped because they are only used conditionally (which is good):
apitrace/thirdparty/CMakeLists.txt
Lines 38 to 66 in 00706d1
The text was updated successfully, but these errors were encountered: