mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-26 21:01:06 +02:00
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: ACK94931656b5
Tree-SHA512: bf0320306967164374499dd0be122473799e830fdff5e070ef13f87af3c14a3b799d90afb423881edd7eea17c13d27af8ced381bbb3cd149353b31b3990dde67
This commit is contained in:
@@ -245,10 +245,11 @@ endif()
|
||||
|
||||
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)
|
||||
qt6_add_lrelease(bitcoinqt
|
||||
TS_FILES ${ts_files}
|
||||
OPTIONS -silent
|
||||
)
|
||||
if(Qt6_VERSION VERSION_GREATER_EQUAL 6.7)
|
||||
qt6_add_lrelease(TS_FILES ${ts_files} OPTIONS -silent)
|
||||
else()
|
||||
qt6_add_lrelease(bitcoinqt TS_FILES ${ts_files} OPTIONS -silent)
|
||||
endif()
|
||||
|
||||
add_executable(bitcoin-qt
|
||||
main.cpp
|
||||
|
Reference in New Issue
Block a user