Create the "doc" dir before generating docs. 28/3128/1
authorJoakim Söderberg <joakim.soderberg@gmail.com>
Tue, 19 Feb 2013 02:14:54 +0000 (10:14 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:37 +0000 (13:01 -0800)
The documentation wouldn't be generated if the path didn't exist.

CMakeLists.txt

index 1da9c72..3bb6c6d 100644 (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