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:37:07 +0100 |
commit | b663b64b338ac927c2c190ca76baa40db6d0d9a0 (patch) | |
tree | 6f8c11004b2c9ed6027457589b5054b7efcd1d62 | |
parent | 9ff0bfc84d41af3f0ecfafd789e2f7ebd0a23df7 (diff) | |
download | kpicosim-b663b64b338ac927c2c190ca76baa40db6d0d9a0.tar.gz kpicosim-b663b64b338ac927c2c190ca76baa40db6d0d9a0.zip |
cmake: Fix FTBS if no translations are available
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7504920c6dd8513b71a0a4c625de6be8ed0d7094)
-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( ) |