Skip to content
Discussion options

You must be logged in to vote

The default is indeed linking statically, but it is trivial to change it by setting the cmake option USE_STATIC_MSVC_RUNTIME_LIBRARY to OFF. This will require you to install the MSVC redistributables on any machine where your executable needs to run. If your application consists of DLLs then dynamically linking is the best choice.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MrGreenWithAGun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2053 on June 14, 2026 18:46.