diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-10 20:36:54 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-10 20:36:54 +0100 |
commit | 7504920c6dd8513b71a0a4c625de6be8ed0d7094 (patch) | |
tree | 5154f17952bd42b6cf054173aa2c30d66d507836 | |
parent | fdd508d2999441099da89dddedd98bde036e82a7 (diff) | |
download | kpicosim-7504920c6dd8513b71a0a4c625de6be8ed0d7094.tar.gz kpicosim-7504920c6dd8513b71a0a4c625de6be8ed0d7094.zip |
cmake: Fix FTBS if no translations are available
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | po/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index f5a2e1b..366643b 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -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( ) |