Do not create a symlink if already exists.

--HG--
branch : develop
master
Roman Telezhynskyi 2017-10-30 10:02:01 +02:00
parent 16a0af6ca5
commit 6e194e966b
1 changed files with 3 additions and 1 deletions

View File

@ -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