Do not create a symlink if already exists.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-10-30 10:02:01 +02:00
parent 16a0af6ca5
commit 6e194e966b

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