Skip to content

Commit 18cf727

Browse files
committed
1 parent 4b1d48a commit 18cf727

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/qt/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ set(CMAKE_AUTORCC ON)
5454
set(CMAKE_AUTOUIC ON)
5555
set(CMAKE_AUTOUIC_SEARCH_PATHS forms)
5656

57-
# TODO: The file(GLOB ...) command should be replaced with an explicit
58-
# file list. Such a change must be synced with the corresponding change
59-
# to https://github.com/bitcoin-core/bitcoin-maintainer-tools/blob/main/update-translations.py
60-
file(GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts)
61-
set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/locale)
62-
qt6_add_translation(qm_files ${ts_files})
63-
6457
configure_file(bitcoin_locale.qrc bitcoin_locale.qrc USE_SOURCE_PERMISSIONS COPYONLY)
6558

6659
# The bitcoinqt sources have to include headers in
@@ -250,6 +243,13 @@ if(qt_lib_type STREQUAL "STATIC_LIBRARY")
250243
)
251244
endif()
252245

246+
file(GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts)
247+
set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/locale)
248+
qt6_add_lrelease(bitcoinqt
249+
TS_FILES ${ts_files}
250+
OPTIONS -silent
251+
)
252+
253253
add_executable(bitcoin-qt
254254
main.cpp
255255
../init/bitcoin-qt.cpp

0 commit comments

Comments
 (0)