Repository navigation
fix: fetch BoringSSL with CMake older than 3.24 - #1144
Merged
Merged
Conversation
DOWNLOAD_EXTRACT_TIMESTAMP is new in CMake 3.24. Older versions, which the root CMakeLists.txt still accepts, fold it into URL_HASH and fail to configure, so the option is passed only to a CMake that knows it.
Owner
|
@ykhrustalev Thanks! PR merged. |
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.
Problem
DOWNLOAD_EXTRACT_TIMESTAMPis new in CMake 3.24, but the rootCMakeLists.txtaccepts 3.20. Older CMake folds it intoURL_HASH, so-DAUDIOCPP_BUILD_NATIVE_MODEL_MANAGER=ONwith the bundled BoringSSL fails to configure on CMake 3.22 and 3.23 (the pinned BoringSSL needs 3.22), e.g. Ubuntu 22.04's packaged 3.22.1.Solution
AUDIOCPP_BORINGSSL_FETCH_ARGS, the pattern ggml already uses for KleidiAIDOWNLOAD_EXTRACT_TIMESTAMP TRUEonly whenCMAKE_VERSIONis 3.24 or newer; older CMake already keeps the archive timestamps, so behavior is unchangedTesting
-DAUDIOCPP_BUILD_NATIVE_MODEL_MANAGER=ONfails withURL_HASH is set to SHA256=...;DOWNLOAD_EXTRACT_TIMESTAMP;TRUE but must be ALGO=value; with it, configure is clean andaudiocpp_server,audiocpp_cliandaudiocpp_model_managerbuildaudiocpp_model_managerbuildsaudiocpp_server,audiocpp_cliandaudiocpp_model_managerbuildaudiocpp_model_manager info qwen3_asr_0_6b_q8_0 --remotesucceeds over HTTPS (stateok, 1,151,279,968 bytes)