Skip to content

Commit 9afe0c8

Browse files
committed
cmake: Fix translate target when ENABLE_WALLET=OFF
1 parent fec5dcd commit 9afe0c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/qt/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,11 @@ elseif(NOT SED_EXECUTABLE)
341341
COMMAND ${CMAKE_COMMAND} -E echo "Error: GNU sed not found"
342342
)
343343
else()
344-
get_translatable_sources(translatable_sources src src/qt src/util src/wallet)
344+
set(translatable_sources_directories src src/qt src/util)
345+
if(ENABLE_WALLET)
346+
list(APPEND translatable_sources_directories src/wallet)
347+
endif()
348+
get_translatable_sources(translatable_sources ${translatable_sources_directories})
345349
get_translatable_sources(qt_translatable_sources src/qt)
346350
file(GLOB ui_files ${CMAKE_CURRENT_SOURCE_DIR}/forms/*.ui)
347351
add_custom_target(translate

0 commit comments

Comments
 (0)