Skip to content

Commit

Permalink
cmake: Fix translate target when ENABLE_WALLET=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jul 2, 2024
1 parent fec5dcd commit 9afe0c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ elseif(NOT SED_EXECUTABLE)
COMMAND ${CMAKE_COMMAND} -E echo "Error: GNU sed not found"
)
else()
get_translatable_sources(translatable_sources src src/qt src/util src/wallet)
set(translatable_sources_directories src src/qt src/util)
if(ENABLE_WALLET)
list(APPEND translatable_sources_directories src/wallet)
endif()
get_translatable_sources(translatable_sources ${translatable_sources_directories})
get_translatable_sources(qt_translatable_sources src/qt)
file(GLOB ui_files ${CMAKE_CURRENT_SOURCE_DIR}/forms/*.ui)
add_custom_target(translate
Expand Down

0 comments on commit 9afe0c8

Please sign in to comment.