mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-29 13:03:39 +02:00
cmake: Use newer signature of qt6_add_lrelease
when available
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