diff --git a/cmake/documentation.cmake b/cmake/documentation.cmake index 9213c9e6..d3cbf585 100644 --- a/cmake/documentation.cmake +++ b/cmake/documentation.cmake @@ -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()