diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-08-14 17:01:40 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-08-14 17:01:40 +0300 |
commit | a9c67542bfa118ca7e70921a7b7f884c7851d712 (patch) | |
tree | f1f766001622c7236806df839d12766f4f93b573 /CMakeLists.txt | |
parent | 43efac491da3d5c246c75be8509c607b9f93a0d2 (diff) |
Don't generate the translations when running the CI
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 035191ebf7..bd5e1599b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,8 @@ if(CURA_DEBUGMODE) set(_cura_debugmode "ON") endif() +option(GENERATE_TRANSLATIONS "Should the translations be generated?" ON) + set(CURA_APP_NAME "cura" CACHE STRING "Short name of Cura, used for configuration folder") set(CURA_APP_DISPLAY_NAME "Ultimaker Cura" CACHE STRING "Display name of Cura") set(CURA_VERSION "master" CACHE STRING "Version name of Cura") @@ -58,7 +60,9 @@ if(NOT ${URANIUM_SCRIPTS_DIR} STREQUAL "") # Extract Strings add_custom_target(extract-messages ${URANIUM_SCRIPTS_DIR}/extract-messages ${CMAKE_SOURCE_DIR} cura) # Build Translations - CREATE_TRANSLATION_TARGETS() + if(${GENERATE_TRANSLATIONS}) + CREATE_TRANSLATION_TARGETS() + endif() endif() |