Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a statically-linked runtime library #399

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

m417z
Copy link

@m417z m417z commented May 25, 2024

Otherwise, if the Visual C++ Redistributable isn't installed, the following error message pops up:
image

This causes the binary size to increase by around 250 KB, e.g. for DebugViewConsole.exe it goes from 447 KB to 695 KB, but I believe that for such a tool, having it functional on any machine for troubleshooting etc. is more important.

BTW a statically-linked runtime library was used in v1.8, but was changed with the introduction of cmake.

Reference for the cmake command:
https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html#variable:CMAKE_MSVC_RUNTIME_LIBRARY

Fixes #396.

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.

removing the msvcp140.dll and msvcp140_1.dll dependencies in 1.9.0.28 binaray version.
1 participant