From caf8bfb50c950b385edb8ec5265c51ae6c74438f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 8 Mar 2010 06:45:27 +0000 Subject: revert changes to library linking, document why --- source/source.pro | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source/source.pro') diff --git a/source/source.pro b/source/source.pro index 1e639467..29a63966 100644 --- a/source/source.pro +++ b/source/source.pro @@ -4,9 +4,16 @@ QT += network \ CONFIG += staticlib \ debug_and_release -TARGET = QXmppClient +# Make sure the library gets built in the same location +# regardless of the platform. On win32 the library is +# automagically put in debug/release folders, so do the +# same for other platforms. CONFIG(debug, debug|release) { - TARGET = $$join(TARGET,,,_d) + win32:TARGET = QXmppClient_d + !win32:TARGET = debug/QXmppClient_d +} else { + win32:TARGET = QXmppClient + !win32:TARGET = release/QXmppClient } # Header files -- cgit v1.2.3