Can qmake customize command line options in a Visual Studio project?

I am interested in using /MP

as a command line parameter in every Visual Studio project I create with qmake (because it makes compilation much faster) - see here for a description .

Unfortunately I don't know how to set this in the Qt.pro file, or if it is possible.

Is it possible to set command line flags (as in the linked question) for qmake to be recognized and added to Visual Studio projects?

+3


source to share


1 answer


Try with QMAKE_CXXFLAGS

:

QMAKE_CXXFLAGS += /MP

      



This seems to be a working setting and run qmake -tp vc

sets the MP flag in the compiler options.

+6


source







All Articles