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)
r14.0.x
Slávek Banko 4 years ago
parent df070851a5
commit 314a0453de
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