View Full Version : Project file LIBS debug/release
bunjee
1st January 2009, 18:07
Hey there,
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.
wysota
1st January 2009, 18:23
release:LIBS and debug:LIBS should work fine.
bunjee
2nd January 2009, 21:21
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.
bunjee
2nd January 2009, 21:54
Solved....
This works:
CONFIG(debug, debug|release) {
LIBS += \
-Llib/ -lqkCoreD
} else {
LIBS += \
-Llib/ -lqkCore
}
This does not:
CONFIG(debug, debug|release)
{
LIBS += \
-Llib/ -lqkCoreD
} else {
LIBS += \
-Llib/ -lqkCore
}
chesterx
23rd July 2015, 00:36
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)
wysota
27th July 2015, 05:42
You shouldn't need to do that unless ICU debug and release libraries are named differently or they are link-time incompatible. Are they?
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.