File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,21 @@ qt6_add_resources(bitcoinqml "bitcoin_qt_translations"
163163 PREFIX "/translations"
164164 FILES ${BITCOIN_QT_QM_FILES}
165165)
166+
167+ # RCC-generated translation sources contain trailing whitespace that trips
168+ # -Wtrailing-whitespace=any (GCC >= 15). Suppress it only for those generated
169+ # files, mirroring the submodule's handling of its own resources.
170+ # See: https://bugreports.qt.io/browse/QTBUG-141858.
171+ get_target_property (warn_flags warn_interface INTERFACE_COMPILE_OPTIONS )
172+ if ("-Wtrailing-whitespace=any" IN_LIST warn_flags)
173+ set_source_files_properties (
174+ ${CMAKE_CURRENT_BINARY_DIR } /.qt/rcc/qrc_qml_gui_translations.cpp
175+ ${CMAKE_CURRENT_BINARY_DIR } /.qt/rcc/qrc_bitcoin_qt_translations.cpp
176+ PROPERTIES COMPILE_OPTIONS -Wno-trailing-whitespace
177+ )
178+ endif ()
179+ unset (warn_flags)
180+
166181add_dependencies (bitcoinqml bitcoin-qt )
167182
168183# Put it all together
You can’t perform that action at this time.
0 commit comments