diff --git a/pri/build_opts.pri b/pri/build_opts.pri index dd777741f..4a6d4b322 100644 --- a/pri/build_opts.pri +++ b/pri/build_opts.pri @@ -19,6 +19,13 @@ gcc|g++|clang* { msvc { QMAKE_CXXFLAGS *= /std:c++17 + + # Link statically to runtime. + # QMAKE_CXXFLAGS_RELEASE *= /MT + # QMAKE_CXXFLAGS_DEBUG *= /MTd + # QMAKE_CXXFLAGS -= /MDd -MDd + # QMAKE_CXXFLAGS_RELEASE -= /MDd -MDd + # QMAKE_CXXFLAGS_DEBUG -= /MDd -MDd } clang* {