Add option to use static runtime #125

Closed
computerquip-streamlabs wants to merge 1 commit from optional-crt into master
computerquip-streamlabs commented 2018-08-10 17:39:25 -05:00 (Migrated from github.com)

There appears to have been misconception of not being able to use /MD when using libcef. This isn't true due to the use of the libcef_dll_wrapper described here.

This adds an option to dynamically link against the runtime by setting BROWSER_USE_STATIC_CRT to a falsey value.

While I've set the default value here to true, I don't suggest statically against the runtime here at all. I've set it to default only because this is how it was already set and it felt less intrusive.

There appears to have been misconception of not being able to use /MD when using libcef. This isn't true due to the use of the libcef_dll_wrapper described [here](https://bitbucket.org/chromiumembedded/cef/wiki/LinkingDifferentRunTimeLibraries). This adds an option to dynamically link against the runtime by setting BROWSER_USE_STATIC_CRT to a falsey value. While I've set the default value here to true, I don't suggest statically against the runtime here at all. I've set it to default only because this is how it was already set and it felt less intrusive.
PatTheMav commented 2025-11-07 08:35:20 -06:00 (Migrated from github.com)

@WizardCM I think this can be closed - the underlying CMake implementation has obviously changed a lot in the last 7(!) years, but we also use the static CEF wrapper by default anyway (which is also independent of how CEF itself is linked/loaded anyway, as correctly pointed out).

@WizardCM I think this can be closed - the underlying CMake implementation has obviously changed a lot in the last 7(!) years, but we also use the static CEF wrapper by default anyway (which is also independent of how CEF itself is linked/loaded anyway, as correctly pointed out).

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-obsproject/obs-browser!125
No description provided.