Add tde_setup_msgfmt macro.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/18/head
Slávek Banko 6 years ago
parent b034c47597
commit 6c8bd13328
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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

Loading…
Cancel
Save