build: Sphinx documentation install step refactored

This commit is contained in:
Mateusz Pusz
2021-11-05 23:55:24 +01:00
parent ec6b625135
commit 7006dfcafb

View File

@ -119,8 +119,6 @@ function(add_documentation targetName)
if(_args_INSTALL_DIR)
# Add an install step to install the docs
install(DIRECTORY ${_sphinx_docs_dir}
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
install(DIRECTORY ${_sphinx_docs_dir} TYPE DOC)
endif()
endfunction()