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>
(cherry picked from commit 52001b9069)
v3.5.13-sru
Slávek Banko 4 years ago
parent 1dd89cc65f
commit 3c690a3519
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1690,13 +1690,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