cmake: Use newer signature of qt6_add_lrelease when available
This commit is contained in:
1 parent
b80ead8a71
commit
94931656b5
1 file changed
+5
-4
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user