Repository navigation
cmake: allow overriding the MDK SDK archive name - #417
Merged
wang-bin merged 1 commit intoNov 15, 2026
Merged
Conversation
FVP_DEPS_URL appends the platform archive name, but mdk-sdk GitHub releases publish the Windows x64 archive as mdk-sdk-windows-x64-vs2026.7z since 0.37, so a checksum-pinned release cannot be fetched there. FVP_DEPS_ARCHIVE (CMake or environment) replaces that name. Co-authored-by: Claude <[email protected]>
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
FVP_DEPS_URLandFVP_DEPS_SHA256(#381) pin the MDK SDK to an immutable release, and fvp appends the platform archive name to that URL. Since mdk-sdk 0.37, the GitHub releases publish the Windows x64 archive only asmdk-sdk-windows-x64-vs2026.7z(0.36.0 still published both names)..../releases/download/vX.Y.Z/mdk-sdk-windows-x64.7zis therefore a 404, and a pinned Windows build cannot use a GitHub release. The only workaround today is to pre-seed the archive under the expected name from the app's own CMakeLists.Changes
FVP_DEPS_ARCHIVE, as a CMake cache variable or an environment variable, with the same precedence asFVP_DEPS_URLandFVP_DEPS_SHA256. When set, it replaces the platform archive name appended to the base URL, which is also the name of the cached archive.Testing
ctest -C Releaseincmake/testswith CMake 4.4.5 on macOS: 4/4 pass. The two new tests fail againstmaster. Not run on Windows or Ubuntu locally; the existing workflow covers both.🤖 Generated with Claude Code