From 65c98f6a39cde857703546f6cdd3c2cfcccab81f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 5 Jun 2017 16:21:35 +0300 Subject: [PATCH] Do not force copying translations if build in debug mode. --HG-- branch : develop --- src/app/translations.pri | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/translations.pri b/src/app/translations.pri index 719ff23b1..32a9426f5 100755 --- a/src/app/translations.pri +++ b/src/app/translations.pri @@ -72,7 +72,11 @@ for(_translation_name, INSTALL_TRANSLATIONS) { } # Make possible run program even you do not install it. Seek files in local directory. -forceCopyToDestdir($$INSTALL_TRANSLATIONS, $$shell_path($${OUT_PWD}/$$DESTDIR/translations)) +CONFIG(release, debug|release){ + forceCopyToDestdir($$INSTALL_TRANSLATIONS, $$shell_path($${OUT_PWD}/$$DESTDIR/translations)) +} else { + copyToDestdir($$INSTALL_TRANSLATIONS, $$shell_path($${OUT_PWD}/$$DESTDIR/translations)) +} macx{ RESOURCES_DIR = "Contents/Resources"