Skip to content

Commit ee5bf95

Browse files
authored
chore: allow building the embedded UI header separately (#1415)
1 parent 6b675a5 commit ee5bf95

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

examples/server/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ if(SD_SERVER_BUILD_FRONTEND AND EXISTS "${FRONTEND_DIR}")
5050

5151
set_source_files_properties("${GENERATED_HTML_HEADER}" PROPERTIES GENERATED TRUE)
5252
else()
53-
message(WARNING "pnpm not found, frontend build disabled")
53+
if(EXISTS "${GENERATED_HTML_HEADER}")
54+
message(STATUS "pnpm not found; using pre-built frontend header detected at ${GENERATED_HTML_HEADER}")
55+
set(HAVE_FRONTEND_BUILD ON)
56+
add_custom_target(${TARGET}_frontend)
57+
else()
58+
message(WARNING "pnpm not found; frontend build disabled.")
59+
endif()
5460
endif()
5561
else()
5662
message(STATUS "Frontend disabled or directory not found: ${FRONTEND_DIR}")

0 commit comments

Comments
 (0)