diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2013-09-20 03:26:52 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-09-20 03:26:52 +0200 |
commit | e113ed917ca8d86e607c7fc70accd681cfefb0a4 (patch) | |
tree | 3a26e5528d7850bab5c7f8ba856588a8795e0659 /ConfigureChecks.cmake | |
parent | 06c56ee1e11121a033e9d4670c50ef2f893ba511 (diff) | |
download | tdepowersave-e113ed917ca8d86e607c7fc70accd681cfefb0a4.tar.gz tdepowersave-e113ed917ca8d86e607c7fc70accd681cfefb0a4.zip |
Fix cmake support for translations
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
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 ) |