Skip to content

ifcviewer: support linking system-packaged wgpu-native and zstd - #9335

Open
brunopostle wants to merge 1 commit into
v0.9.0from
fix/ifcviewer-system-wgpu-native
Open

ifcviewer: support linking system-packaged wgpu-native and zstd#9335
brunopostle wants to merge 1 commit into
v0.9.0from
fix/ifcviewer-system-wgpu-native

Conversation

@brunopostle

@brunopostle brunopostle commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a WGPU_NATIVE_USE_SYSTEM CMake option that resolves wgpu-native via pkg-config instead of FetchContent-ing upstream's prebuilt binary release, for distros (e.g. Fedora) that package it themselves
  • Fall back to pkg-config for zstd when the CMake zstd CONFIG package isn't available
  • Skip the wgpu-native runtime install step when WGPU_NATIVE_USE_SYSTEM is on, since the system package already owns the shared library

Test plan

  • Configure with -DWGPU_NATIVE_USE_SYSTEM=ON on a system with a wgpu-native pkg-config file (e.g. Fedora) and confirm it links against the system package instead of fetching upstream's binary
  • Configure without the option and confirm existing FetchContent behavior is unchanged

Add a WGPU_NATIVE_USE_SYSTEM option that resolves wgpu-native via
pkg-config instead of FetchContent-ing upstream's prebuilt binary
release, for distros (e.g. Fedora) that ship it as a system package.
Also fall back to pkg-config for zstd when the CONFIG package isn't
available, and skip the wgpu-native runtime install step when the
system package already owns it.
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.

1 participant