Hey there,
Code:
LIBS += \ -Llib/ -lqkCoreD
How can I change this LIBS including flag according to if I'm compiling in Debug or Release, I tried CONFIG(debug) / Release with no success.
Thanks.
Printable View
Hey there,
Code:
LIBS += \ -Llib/ -lqkCoreD
How can I change this LIBS including flag according to if I'm compiling in Debug or Release, I tried CONFIG(debug) / Release with no success.
Thanks.
release:LIBS and debug:LIBS should work fine.
Debug: CONFIG+=debug_and_release
Release: CONFIG+=debug_and_release CONFIG+=release
I try to differentiate those too using :
CONFIG(debug, debug|release)
CONFIG(release, debug|release)
without any success. it includes both in debug mode.
Solved....
This works:
Code:
CONFIG(debug, debug|release) { LIBS += \ -Llib/ -lqkCoreD } else { LIBS += \ -Llib/ -lqkCore }
This does not:
Code:
CONFIG(debug, debug|release) { LIBS += \ -Llib/ -lqkCoreD } else { LIBS += \ -Llib/ -lqkCore }
Does anyone know how to do this at CONFIGURE.exe time ? I mean when building Qt. How do I pass a -L to Release different than one -L to Debug in a -debug-and-release build?
(I'm trying to compile Qt with ICU and I have ICU compiled in Release and Debug modes in separate folders)
You shouldn't need to do that unless ICU debug and release libraries are named differently or they are link-time incompatible. Are they?