summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2013-09-20 03:26:52 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-20 03:26:52 +0200
commite113ed917ca8d86e607c7fc70accd681cfefb0a4 (patch)
tree3a26e5528d7850bab5c7f8ba856588a8795e0659 /ConfigureChecks.cmake
parent06c56ee1e11121a033e9d4670c50ef2f893ba511 (diff)
downloadtdepowersave-e113ed917ca8d86e607c7fc70accd681cfefb0a4.tar.gz
tdepowersave-e113ed917ca8d86e607c7fc70accd681cfefb0a4.zip
Fix cmake support for translations
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index c257983..68fca16 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -57,6 +57,14 @@ if( NOT DBUS_TQT_FOUND )
tde_message_fatal( "dbus-tqt is required, but was not found on your system" )
endif( )
+# check for msgfmt
+if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
+ find_program( MSGFMT_EXECUTABLE msgfmt )
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt program is required, but was not found on your system" )
+ endif( )
+endif( )
+
# required stuff
find_package( TQt )