1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Create the "doc" dir before generating docs.

The documentation wouldn't be generated if the path didn't exist.
This commit is contained in:
Joakim Söderberg 2013-02-19 10:14:54 +08:00 committed by Andy Green
parent 6ac9709790
commit 455e45150a

View file

@ -609,6 +609,8 @@ if (UNIX)
# TODO: Fix this on Windows.
message("Generating API documentation")
file(GLOB C_FILES ${PROJECT_SOURCE_DIR}/lib/*.c)
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/doc/)
execute_process(
COMMAND ${PROJECT_SOURCE_DIR}/scripts/kernel-doc -html ${C_FILES} ${HDR_PUBLIC}
OUTPUT_FILE ${PROJECT_BINARY_DIR}/doc/libwebsockets-api-doc.html