[SOlved] qmake - Console only in debug
-
I would like to show the console when debuging my application, but not in release.
I tried to add this in my .pro but it always shows the console (I'm compiling with msvc)
@# ==== Pass Detection =====
build_pass {
CONFIG(release, release|debug) {
MODE = release
}
CONFIG(debug, release|debug) {
MODE = debug
TARGET = $$join(TARGET,,,_debug)
}
}
!build_pass:MODE = common==== Keep console in debug =====
win32: release: CONFIG -= console
win32: debug: CONFIG += console@
Any tips? -
Stupid error:
@# ==== Keep console in debug ====
contains(MODE, debug) {
CONFIG += console
}
contains(MODE, release) {
CONFIG -= console
}@