Skip to content

Document dynamic linking and safeguard in CMake for static linking - #309

Merged
joergbrech merged 1 commit into
mainfrom
306-cmake-libraries-are-hard-coded-shared-and-grunkversionhpp-is-not-found-when-used-via-fetchcontentadd_subdirectory
Oct 2, 2026
Merged

joergbrech merged 1 commit into
mainfrom
306-cmake-libraries-are-hard-coded-shared-and-grunkversionhpp-is-not-found-when-used-via-fetchcontentadd_subdirectory

Conversation

@joergbrech

@joergbrech joergbrech commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

grunk needs to be linked dynamically. Adds documentation and a cmake safeguard.

Linking grunk statically is possible in principle, but this might break when several runtimes operate on their own private grunk::state in a process (e.g. when working with plugins).

Closes #306

@joergbrech
joergbrech merged commit d6cb991 into main Oct 2, 2026
14 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.

CMake: grunk/version.hpp is not found when grunk is used via FetchContent/add_subdirectory

1 participant