Skip to content

Commit 3b6cce7

Browse files
committed
fix: install bundled web assets after configure-time web builds
1 parent 02eb378 commit 3b6cce7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ install(FILES
5151
DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/icey-server"
5252
COMPONENT apps)
5353

54-
if(EXISTS "${ICEY_WEB_DIST_DIR}/index.html")
55-
install(DIRECTORY "${ICEY_WEB_DIST_DIR}/"
56-
DESTINATION "${CMAKE_INSTALL_DATADIR}/icey-server/web"
57-
COMPONENT apps)
58-
else()
59-
message(STATUS "Web dist not found at ${ICEY_WEB_DIST_DIR}; install will skip web assets")
60-
endif()
54+
install(DIRECTORY "${ICEY_WEB_DIST_DIR}/"
55+
DESTINATION "${CMAKE_INSTALL_DATADIR}/icey-server/web"
56+
COMPONENT apps
57+
OPTIONAL)

0 commit comments

Comments
 (0)