Adjust CMakeL10n module to search for tde.pot in 'core/tdelibs' folder.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/62/head
Slávek Banko 4 years ago
parent 35d0198787
commit ae0ecf194b
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -85,14 +85,14 @@ endif( )
if( NOT DEFINED TDE_COMMON_TEXTS_POT ) if( NOT DEFINED TDE_COMMON_TEXTS_POT )
get_filename_component( TDE_SOURCE_BASE "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE ) get_filename_component( TDE_SOURCE_BASE "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE )
while( (NOT EXISTS "${TDE_SOURCE_BASE}/tdelibs" while( (NOT EXISTS "${TDE_SOURCE_BASE}/core/tdelibs"
OR NOT IS_DIRECTORY "${TDE_SOURCE_BASE}/tdelibs" ) OR NOT IS_DIRECTORY "${TDE_SOURCE_BASE}/core/tdelibs" )
AND NOT "${TDE_SOURCE_BASE}" STREQUAL "/" ) AND NOT "${TDE_SOURCE_BASE}" STREQUAL "/" )
get_filename_component( TDE_SOURCE_BASE "${TDE_SOURCE_BASE}" PATH ) get_filename_component( TDE_SOURCE_BASE "${TDE_SOURCE_BASE}" PATH )
endwhile( ) endwhile( )
find_file( TDE_COMMON_TEXTS_POT find_file( TDE_COMMON_TEXTS_POT
NAMES tde.pot NAMES tde.pot
HINTS "${TDE_SOURCE_BASE}/tdelibs" "${TDE_PREFIX}/include" "${TDE_PREFIX}/include/tde" HINTS "${TDE_SOURCE_BASE}/core/tdelibs" "${TDE_PREFIX}/include" "${TDE_PREFIX}/include/tde"
) )
if( "${TDE_COMMON_TEXTS_POT}" STREQUAL "TDE_COMMON_TEXTS_POT-NOTFOUND" ) if( "${TDE_COMMON_TEXTS_POT}" STREQUAL "TDE_COMMON_TEXTS_POT-NOTFOUND" )
tde_message_fatal( "translation template with common texts not found" ) tde_message_fatal( "translation template with common texts not found" )

Loading…
Cancel
Save