From 6e194e966b4894d1cca1d684fefee7ede9b672b3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 30 Oct 2017 10:02:01 +0200 Subject: [PATCH] Do not create a symlink if already exists. --HG-- branch : develop --- common.pri | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.pri b/common.pri index 0a7ee8d42..1142b1dc5 100644 --- a/common.pri +++ b/common.pri @@ -84,7 +84,9 @@ defineTest(copyToDestdir) { for(FILE, files) { unix{ - QMAKE_POST_LINK += ln -s -f $$quote($$FILE) $$quote($$DDIR/$$basename(FILE)) & $$escape_expand(\\n\\t) + !exists($$DDIR/$$basename(FILE)) { + QMAKE_POST_LINK += ln -s -f $$quote($$FILE) $$quote($$DDIR/$$basename(FILE)) & $$escape_expand(\\n\\t) + } } else { !exists($$DDIR/$$basename(FILE)) { # Replace slashes in paths with backslashes for Windows