4

I am interested in using /MP as a command line option in each Visual Studio project I create with qmake (because this greatly speeds compilation) - see here for description.

Unfortunately, I have no idea how to set this in a Qt .pro file - or if it is even possible.

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

Community
  • 1
  • 1
enderland
  • 13,202
  • 16
  • 94
  • 149

1 Answers1

7

Try with QMAKE_CXXFLAGS:

QMAKE_CXXFLAGS += /MP

It seems to be working - setting that and running qmake -tp vc sets the MP flag in compiler's options.

Nemanja Boric
  • 21,057
  • 6
  • 63
  • 89