Skip to content

cmake: add shared library option - #350

Merged
spencer-lunarg merged 1 commit into
KhronosGroup:mainfrom
wolfv:support-shared-library
Aug 10, 2026
Merged

spencer-lunarg merged 1 commit into
KhronosGroup:mainfrom
wolfv:support-shared-library

Conversation

@wolfv

@wolfv wolfv commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Add an opt-in SPIRV_REFLECT_SHARED_LIB CMake option alongside the existing static-library option.

The shared target installs as libspirv-reflect, installs the public header, and uses CMake automatic symbol exports on Windows. Existing defaults and the static target remain unchanged.

Tested by configuring, building, and installing the shared-only target locally. This is also exercised across Linux, macOS, and Windows by conda-forge: https://github.com/conda-forge/spirv-reflect-feedstock

@CLAassistant

CLAassistant commented Aug 3, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@wolfv

wolfv commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@spencer-lunarg

Copy link
Copy Markdown
Contributor

@wolfv this looks good... not sure why github is not happy about the CLA, I tried to "recheck" it and still seems to not be working... can you try signing it again (github has REALLY had issues with the CLA server recently across the various repos I work on)

@wolfv

wolfv commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

OK, now CLA is green!

@spencer-lunarg
spencer-lunarg merged commit 27ca3d8 into KhronosGroup:main Aug 10, 2026
5 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.

3 participants