tde_create_translated_desktop: Use find_file instead of find_program

to find tde_l10n_merge.pl because it does not have the executable
bit set.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/68/head
Slávek Banko 3 years ago
parent 53c7e28984
commit 52001b9069
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1877,13 +1877,13 @@ macro( tde_create_translated_desktop )
include( FindPerl )
endif( )
if( NOT INTLTOOL_MERGE_EXECUTABLE )
find_program( INTLTOOL_MERGE_EXECUTABLE
find_file( INTLTOOL_MERGE_EXECUTABLE
NAMES tde_l10n_merge.pl
HINTS ${TDE_CMAKE_MODULES}
)
if( "${INTLTOOL_MERGE_EXECUTABLE}" STREQUAL "INTLTOOL_MERGE_EXECUTABLE-NOTFOUND" )
#tde_message_fatal( "xgettext >= 0.19 or intltool-merge is required but not found" )
tde_message_fatal( "intltool-merge is required but not found" )
#tde_message_fatal( "xgettext >= 0.19 or tde_l10n_merge.pl is required but not found" )
tde_message_fatal( "tde_l10n_merge.pl is required but not found" )
endif( )
message( STATUS "Found intltool: ${INTLTOOL_MERGE_EXECUTABLE}" )
endif( )

Loading…
Cancel
Save