cmake: Fix FTBS if no translations are available

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

@ -1 +1,5 @@
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
# build translations if some are already available
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
if( _srcs )
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
endif( )

Loading…
Cancel
Save