We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b675a5 commit ee5bf95Copy full SHA for ee5bf95
1 file changed
examples/server/CMakeLists.txt
@@ -50,7 +50,13 @@ if(SD_SERVER_BUILD_FRONTEND AND EXISTS "${FRONTEND_DIR}")
50
51
set_source_files_properties("${GENERATED_HTML_HEADER}" PROPERTIES GENERATED TRUE)
52
else()
53
- message(WARNING "pnpm not found, frontend build disabled")
+ 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()
60
endif()
61
62
message(STATUS "Frontend disabled or directory not found: ${FRONTEND_DIR}")
0 commit comments