Use common CMake tests.

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

@ -31,20 +31,6 @@ include( TDEMacros )
##### find required stuff #######################
include( FindGettext )
if( GETTEXT_FOUND )
set( DEFAULT_MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE} )
else( GETTEXE_FOUND )
find_program( DEFAULT_MSGFMT_EXECUTABLE msgfmt )
endif( GETTEXT_FOUND )
set( MSGFMT_EXECUTABLE ${DEFAULT_MSGFMT_EXECUTABLE} CACHE FILEPATH
"path to msgfmt executable" )
if( NOT MSGFMT_EXECUTABLE )
tde_message_fatal( "msgfmt is required but was not found on your system or defined" )
endif( NOT MSGFMT_EXECUTABLE )
find_package( TDE )

Loading…
Cancel
Save