cmake: Use newer signature of qt6_add_lrelease when available

This commit is contained in:
Hennadii Stepanov
2025-07-10 16:45:15 +01:00
parent b80ead8a71
commit 94931656b5

View File

@@ -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