Home > Mobile >  After running qmake, how to make debug/release?
After running qmake, how to make debug/release?

Time:05-10

The qmake project file (.pro) contains

CONFIG -= debug_and_release

I would like to keep project file as it is but decide later (from the command line) to do debug or release build.

Currently, when I build from command line

qmake project.pro
make

It does a release build.

How can I choose debug/relase from the command line?

I tried make debug and it returns

make: *** No rule to make target `debug'.  Stop.

Then I tried make release and it returns

make: *** No rule to make target `release'.  Stop.

CodePudding user response:

You can simply do this by followed command

qmake project.pro "CONFIG =debug"
make
  • Related