Skip to content

Commit

Permalink
Python: only build documentation if we have a pre-built Python.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrnz committed Sep 25, 2019
1 parent be74c89 commit 378ab3e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions CMakeLists.txt
Expand Up @@ -997,16 +997,19 @@ foreach(PLUGIN ${PLUGINS})
add_subdirectory(src/plugins/${PLUGIN})
endforeach()

# Fetch parts of our documentation and build it
if(USE_PREBUILT_PYTHON_LIBRARY_PACKAGE)
# We have already built Python and hence have Sphinx available, so we can
# fetch parts of our documentation and build it

execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/doc
${PROJECT_BUILD_DIR}/doc)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/doc
${PROJECT_BUILD_DIR}/doc)

configure_file(${PROJECT_BUILD_DIR}/doc/${CMAKE_PROJECT_NAME}.qhcp.in
${PROJECT_BUILD_DIR}/doc/${CMAKE_PROJECT_NAME}.qhcp)
configure_file(${PROJECT_BUILD_DIR}/doc/${CMAKE_PROJECT_NAME}.qhcp.in
${PROJECT_BUILD_DIR}/doc/${CMAKE_PROJECT_NAME}.qhcp)

build_documentation(user)
build_documentation(developer)
build_documentation(user)
build_documentation(developer)
endif()

# Build the GUI version of OpenCOR

Expand Down

0 comments on commit 378ab3e

Please sign in to comment.