From 3ee492f623a5911d7a680a4c13d407f97643e912 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Tue, 9 Jul 2019 08:20:09 +0930 Subject: [PATCH] Fix build --- dust3d.pro | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dust3d.pro b/dust3d.pro index 1eeef3f4..0e16be02 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -31,17 +31,17 @@ for(tsfile, TRANSLATIONS) { ######################################################## ############## Generate .ts file ####################### +macx { + wd = $$replace(PWD, /, $$QMAKE_DIR_SEP) -wd = $$replace(PWD, /, $$QMAKE_DIR_SEP) - -# Update the .ts file from source -qtPrepareTool(LUPDATE, lupdate) -LUPDATE += src/*.cpp src/*.h -locations none -for(lang, LANGUAGES) { - command = $$LUPDATE -ts languages/dust3d_$${lang}.ts - system($$command)|error("Failed to run: $$command") + # Update the .ts file from source + qtPrepareTool(LUPDATE, lupdate) + LUPDATE += src/*.cpp src/*.h -locations none + for(lang, LANGUAGES) { + command = $$LUPDATE -ts languages/dust3d_$${lang}.ts + system($$command)|error("Failed to run: $$command") + } } - ########################################################## win32 {