On Windows, What Does qmake Add "d" to the Debugging Target?

I am using the provided .profile, and for some reason it is configured so that the debug libraries do not add "d" to their library name. What causes this and how to restore it?

eg. QtGui4.dll(release) and QtGuid4.dll(debug)

Thanks.

+3
source share
2 answers

Add this to the .pro file and add _debug for mac and d to build Windows debugging.

 CONFIG += debug_and_release

 CONFIG(debug, debug|release) {
     mac: TARGET = $$join(TARGET,,,_debug) 
     win32: TARGET = $$join(TARGET,,,d)
 }


CONFIG(xx, yy)This function can be used to check the variables placed in the variable CONFIG join(variablename, glue, before, after)Combines the value of variablename with glue before and after.

+5

Source: https://habr.com/ru/post/1710621/


All Articles