patch-cmake_modules_AddSphinxTarget.cmake 444 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
--- llvm/cmake/modules/AddSphinxTarget.cmake.orig
+++ llvm/cmake/modules/AddSphinxTarget.cmake
@@ -39,6 +39,8 @@
   endif()
 
   add_custom_target(${SPHINX_TARGET_NAME}
+                    COMMAND ${CMAKE_COMMAND}
+                            -E make_directory ${SPHINX_BUILD_DIR}
                     COMMAND ${CMAKE_COMMAND} -E env ${ARG_ENV_VARS}
                             ${SPHINX_EXECUTABLE}
                             -b ${builder}