Skip to content

Commit c05ba35

Browse files
galaknashif
authored andcommitted
samples: civetweb: websocket_server: Fix build issue
The sample uses generate_inc_file_for_target for some "webpages" that get included. However, the directory that the generated files are put into: ${ZEPHYR_BINARY_DIR}/include/generated/web_page isn't created and thus the build fails. Add a simple 'file(MAKE_DIRECTORY ..)' to create the dir. Fixes #34345 Signed-off-by: Kumar Gala <[email protected]>
1 parent 56b9a42 commit c05ba35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/net/civetweb/websocket_server/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ target_sources(app PRIVATE
3030
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
3131
set(web_page_dir web_page)
3232

33+
file(MAKE_DIRECTORY ${gen_dir}/${web_page_dir})
34+
3335
# List of files that are used to generate .h file that can be included
3436
# into .c file.
3537
foreach(inc_file

0 commit comments

Comments
 (0)