From: Joakim SoĢˆderberg Date: Tue, 19 Feb 2013 02:14:54 +0000 (+0800) Subject: Create the "doc" dir before generating docs. X-Git-Tag: accepted/2.0/20130307.220733~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F3128%2F1;p=profile%2Fivi%2Flibwebsockets.git Create the "doc" dir before generating docs. The documentation wouldn't be generated if the path didn't exist. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1da9c72..3bb6c6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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