diff --git a/CMakeLists.txt b/CMakeLists.txt index d6289c8828..e785237fc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ set(CUTTER_EXTRA_PLUGIN_DIRS "" CACHE STRING "List of addition plugin locations" option(CUTTER_ENABLE_DEPENDENCY_DOWNLOADS "Enable downloading of dependencies. Setting to OFF doesn't affect any downloads done by rizin build." OFF) option(CUTTER_ENABLE_PACKAGING "Enable building platform-specific packages for distributing" OFF) option(CUTTER_ENABLE_SIGDB "Downloads and installs sigdb (only available when CUTTER_USE_BUNDLED_RIZIN=ON)." OFF) +option(CUTTER_ENABLE_TRANSLATIONS "Build and install translation files" ON) option(CUTTER_PACKAGE_DEPENDENCIES "During install step include the third party dependencies." OFF) option(CUTTER_PACKAGE_RZ_GHIDRA "Compile and install rz-ghidra during install step." OFF) option(CUTTER_PACKAGE_RZ_LIBSWIFT "Compile and install rz-libswift demangler during the install step." OFF) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 58b2b3b826..4fba081a05 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -613,7 +613,9 @@ if(CUTTER_ENABLE_PACKAGING) target_compile_definitions(Cutter PRIVATE CUTTER_ENABLE_PACKAGING) endif() -include(Translations) +if(CUTTER_ENABLE_TRANSLATIONS) + include(Translations) +endif() # Install files install(TARGETS Cutter