Skip to content

cmake: allow overriding the MDK SDK archive name - #417

Merged
wang-bin merged 1 commit into
wang-bin:masterfrom
t-august-betclic:cmake/deps-archive-name
Nov 15, 2026
Merged

wang-bin merged 1 commit into
wang-bin:masterfrom
t-august-betclic:cmake/deps-archive-name

Conversation

@t-august-betclic

Copy link
Copy Markdown
Contributor

Problem

FVP_DEPS_URL and FVP_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 as mdk-sdk-windows-x64-vs2026.7z (0.36.0 still published both names). .../releases/download/vX.Y.Z/mdk-sdk-windows-x64.7z is 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

  • Add an optional FVP_DEPS_ARCHIVE, as a CMake cache variable or an environment variable, with the same precedence as FVP_DEPS_URL and FVP_DEPS_SHA256. When set, it replaces the platform archive name appended to the base URL, which is also the name of the cached archive.
  • Reject a value that is a path rather than a file name, since it names the cached file.
  • Document it in the README with the Windows GitHub release example.
  • Add network-free tests: the resolution precedence, the path rejection, and an integration test against a release directory that only holds a custom-named archive.

Testing

ctest -C Release in cmake/tests with CMake 4.4.5 on macOS: 4/4 pass. The two new tests fail against master. Not run on Windows or Ubuntu locally; the existing workflow covers both.

🤖 Generated with Claude Code

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]>
@wang-bin
wang-bin merged commit b31dd13 into wang-bin:master Nov 15, 2026
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants