From dba595fdea1152fafb8291ed82df9ce2db825650 Mon Sep 17 00:00:00 2001
From: Christian Kandeler <christian.kandeler@digia.com>
Date: Fri, 11 Oct 2013 15:54:56 +0200
Subject: [PATCH] qbs project files: Add library dir to rpaths for tools.

At least one tool uses libUtils, and others could very well do that too.

Change-Id: I4ddda966dc18ac05fc074a4e58df9f8c5dc09d44
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
---
 qbs/imports/QtcTool.qbs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qbs/imports/QtcTool.qbs b/qbs/imports/QtcTool.qbs
index 5494d0dc5d8..f24edbc8152 100644
--- a/qbs/imports/QtcTool.qbs
+++ b/qbs/imports/QtcTool.qbs
@@ -11,6 +11,10 @@ Application {
 
     property string toolInstallDir: project.ide_libexec_path
 
+    cpp.rpaths: qbs.targetOS.contains("osx")
+            ? ["@executable_path/../" + project.ide_library_path]
+            : ["$ORIGIN/../" + project.ide_library_path]
+
     Group {
         fileTagsFilter: product.type
         qbs.install: true
-- 
GitLab