Using lib debug version
-
Hi All,
some of you should know if possible specify into .pro to use a lib if in debug version instead another one tha i usually use in release version?
thanks. -
Yes:
@
debug:LIBS += -ldebuglib
release:LIBS += -lreleaselib
@ -
Likewise you could have something like
@debug:D=d
release:D=LIBS += -lthelibrary$${D}@
which is especially useful when linking to a lot of libraries following the same naming convention.
-
Thanks a lot for your quick answer.