summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-20 04:03:59 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-28 16:34:02 +0100
commit19102b826409f3c463f6150e30c1a52afbf89431 (patch)
tree6edcba98c68d6df1894594bbfaee1f8673a42fa1
parentd21d5a00679283e31fa7d5861743a179b0fb5f12 (diff)
downloadtde-cmake-19102b826409f3c463f6150e30c1a52afbf89431.tar.gz
tde-cmake-19102b826409f3c463f6150e30c1a52afbf89431.zip
Use tde_setup_msgfmt in tde_create_translation if needed.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 4512d95ca64fd0334fa1c28a7630012d87dc99a3)
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index e2aea5e..9046f92 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1378,8 +1378,9 @@ macro( tde_create_translation )
endforeach( )
if( NOT MSGFMT_EXECUTABLE )
- tde_message_fatal( "MSGFMT_EXECUTABLE variable is not defined" )
- elseif( NOT _lang )
+ tde_setup_msgfmt( )
+ endif( )
+ if( NOT _lang )
tde_message_fatal( "missing LANG directive" )
endif( )