|
|
@ -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" )
|
|
|
|