Skip to content

Conversation

@vimanyu
Copy link
Contributor

@vimanyu vimanyu commented Oct 12, 2020

New option added to our cmake system to specify "/MT", instead of default value of "/MD".
cmake .. -DMSVC_RUNTIME_LIBRARY_STATIC=ON

When we upgrade to CMake >3.15, we could use an inbuilt cmake variable MSVC_RUNTIME_LIBRARY to achieve the same. For ease of use, I made this a toggle instead of a string option.
Tested on Windows and confirmed that the final libs are being built respecting this option.

Adding a new option "MSVC_RUNTIME_LIBRARY_STATIC" to cmake to compile with /MT. (If nothing is specified, the default behaviour is to use /MD)
@vimanyu vimanyu self-assigned this Oct 12, 2020
@google-cla google-cla bot added the cla: yes label Oct 12, 2020
@vimanyu vimanyu merged commit 73b3b49 into dev Oct 13, 2020
@vimanyu vimanyu deleted the feature/option-specify-msvc-runtime-library branch October 13, 2020 21:16
@firebase firebase locked and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3 participants