summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/TDEMacros.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index ff46a25..e2aea5e 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1907,6 +1907,25 @@ macro( tde_setup_gcc_visibility )
endmacro( )
+#################################################
+#####
+##### tde_setup_msgfmt
+
+macro( tde_setup_msgfmt )
+ if( NOT DEFINED MSGFMT_EXECUTABLE )
+ include( FindGettext )
+ if( GETTEXT_FOUND )
+ set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
+ CACHE FILEPATH "path to msgfmt executable" )
+ endif( GETTEXT_FOUND )
+
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt is required but was not found on your system." )
+ endif( NOT MSGFMT_EXECUTABLE )
+ endif( )
+endmacro( )
+
+
################################################
#####
##### Restore CMP0026 policy