Merge bitcoin/bitcoin#32940: cmake: Use newer signature of qt6_add_lrelease when available

94931656b5 cmake: Use newer signature of `qt6_add_lrelease` when available (Hennadii Stepanov)

Pull request description:

  See Qt docs here: https://doc.qt.io/qt-6/qtlinguist-cmake-qt-add-lrelease.html.

  Fixes https://github.com/bitcoin/bitcoin/issues/32710.

ACKs for top commit:
  fanquake:
    ACK 94931656b5

Tree-SHA512: bf0320306967164374499dd0be122473799e830fdff5e070ef13f87af3c14a3b799d90afb423881edd7eea17c13d27af8ced381bbb3cd149353b31b3990dde67
This commit is contained in:
merge-script
2025-07-11 14:26:16 +01:00

View File

@@ -245,10 +245,11 @@ endif()
file(GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts) file(GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts)
set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/locale) set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/locale)
qt6_add_lrelease(bitcoinqt if(Qt6_VERSION VERSION_GREATER_EQUAL 6.7)
TS_FILES ${ts_files} qt6_add_lrelease(TS_FILES ${ts_files} OPTIONS -silent)
OPTIONS -silent else()
) qt6_add_lrelease(bitcoinqt TS_FILES ${ts_files} OPTIONS -silent)
endif()
add_executable(bitcoin-qt add_executable(bitcoin-qt
main.cpp main.cpp