From c05ba3517b5d663b49eda1eb639fa9a9022b8974 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 16 Apr 2021 10:02:12 -0500 Subject: [PATCH] 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 --- samples/net/civetweb/websocket_server/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/net/civetweb/websocket_server/CMakeLists.txt b/samples/net/civetweb/websocket_server/CMakeLists.txt index 69181fd106d..5598b7b68a9 100644 --- a/samples/net/civetweb/websocket_server/CMakeLists.txt +++ b/samples/net/civetweb/websocket_server/CMakeLists.txt @@ -30,6 +30,8 @@ target_sources(app PRIVATE set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/) set(web_page_dir web_page) +file(MAKE_DIRECTORY ${gen_dir}/${web_page_dir}) + # List of files that are used to generate .h file that can be included # into .c file. foreach(inc_file