Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 95550df7df)
r14.0.x
Slávek Banko 6 years ago
parent d7ff808599
commit e0233db53b
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