Do not force copying translations if build in debug mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-06-05 16:21:35 +03:00
parent 9be7403919
commit 65c98f6a39

View file

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