mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
build: install rebuilt web if available (#4865)
This commit is contained in:
parent
a2faaabe69
commit
05dded12a0
2 changed files with 5 additions and 1 deletions
|
@ -772,7 +772,7 @@ foreach(P cli daemon gtk mac qt utils)
|
|||
endif()
|
||||
endforeach()
|
||||
|
||||
if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT)
|
||||
if(NOT REBUILD_WEB AND (ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT))
|
||||
tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
|
||||
endif()
|
||||
|
||||
|
|
|
@ -87,3 +87,7 @@ add_custom_target("${TR_NAME}-web"
|
|||
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt"
|
||||
SOURCES
|
||||
${WEB_SOURCES})
|
||||
|
||||
install(
|
||||
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/public_html
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
|
||||
|
|
Loading…
Reference in a new issue