How to change the C++ Runtime Library setting in QtCreator?
/MT
is a compiler flag. You can specify flags in your .pro file like this:
QMAKE_CXXFLAGS += /MT
Moreover, you probably want to specify /MTd
for debug build:
Release:QMAKE_CXXFLAGS += /MT
Debug:QMAKE_CXXFLAGS += /MTd
In the version of QT 5.5 the variable is QMAKE_CXXFLAGS_DEBUG and QMAKE_CXXFLAGS_RELEASE so the new working solution for QT 5.5 is:
QMAKE_CXXFLAGS_DEBUG += /MTd
QMAKE_CXXFLAGS_RELEASE += /MT