We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02eb378 commit 3b6cce7Copy full SHA for 3b6cce7
CMakeLists.txt
@@ -51,10 +51,7 @@ install(FILES
51
DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/icey-server"
52
COMPONENT apps)
53
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()
+install(DIRECTORY "${ICEY_WEB_DIST_DIR}/"
+ DESTINATION "${CMAKE_INSTALL_DATADIR}/icey-server/web"
+ COMPONENT apps
+ OPTIONAL)
0 commit comments