cmake: Fix FTBS if no translations are available

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7504920c6d)
r14.0.x
Slávek Banko 6 years ago
parent 9ff0bfc84d
commit b663b64b33
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