System libs build#14173
Open
NICourced wants to merge 6 commits into
Open
Conversation
Contributor
Build ResultsPlatform Status
Some builds failed. Pre-commit
Pre-commit hooks: 4 passed, 36 failed, 7 skipped. Updated: 2026-04-17 08:27:15 UTC • Triggered by: Windows |
c073731 to
3df7cf2
Compare
Collaborator
|
I still don't fully understand why you can't just use CPM_USE_LOCAL_PACKAGES |
Author
|
There are some packages used from source and some mavlink packages that could be not packed in distro, so, in my opinion, it's better to add options on each package, also it lets using CPM cache for those who want |
Each dependency now checks a corresponding USE_SYSTEM_<NAME> flag before invoking CPMAddPackage, falling back to find_package() or a pre-set source directory. Affected: mavlink, libevents, zlib, zstd, lz4, bzip2, libarchive, geographiclib, shapelib, SDL3, SDL_GameControllerDB, qmdnsengine, libexif, ulog_cpp, px4-gpsdrivers, ArduPilot parameters, protozero, libosmium, nanobench, rapidcheck, gstqml6gl.
4d983c1 to
9108e9f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add corresponding CMake flags USE_SYSTEM_ before CPMAddPackage to let build with system build dependencies as brebuilt libs or source packages to make it easier to build without internet connection for distros that do so.
New build flags are:
USE_SYSTEM_MAVLINK
USE_SYSTEM_LIBEVENTS
USE_SYSTEM_ZLIB
USE_SYSTEM_XZ-EMBEDDED
USE_SYSTEM_ZSTD
USE_SYSTEM_LZ4
USE_SYSTEM_BZIP2
USE_SYSTEM_LIBARCHIVE
USE_SYSTEM_GEOGRAPHICLIB
USE_SYSTEM_SHAPE
USE_SYSTEM_SDL3
USE_SYSTEM_SDL_GAMECONTROLLERDB
USE_SYSTEM_QMDNSENGINE
USE_SYSTEM_LIBEXIF
USE_SYSTEM_ULOG_CPP
USE_SYSTEM_PX4-GPSDRIVERS
USE_SYSTEM_PARAMETERS
USE_SYSTEM_PROTOZERO
USE_SYSTEM_LIBOSMIUM
USE_SYSTEM_NANOBENCH
USE_SYSTEM_RAPIDCHECK
USE_SYSTEM_GSTQML6
Type of Change
Testing
Platforms Tested
Flight Stacks Tested
Screenshots
Checklist
Related Issues
#13906
By submitting this pull request, I confirm that my contribution is made under the terms of the project's dual license (Apache 2.0 and GPL v3).