summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-06-13 13:01:50 (GMT)
committerGitHub <noreply@github.com>2020-06-13 13:01:50 (GMT)
commite4a9056a5d0fb6764fadd4dac72e4a68184b9387 (patch)
treeae16332fc8de7220771c07a3dc081cdef29905a0 /doc
parent9438348bfc2fdf30ec96483679a3504cb8e17dfc (diff)
downloadDoxygen-e4a9056a5d0fb6764fadd4dac72e4a68184b9387.zip
Doxygen-e4a9056a5d0fb6764fadd4dac72e4a68184b9387.tar.gz
Doxygen-e4a9056a5d0fb6764fadd4dac72e4a68184b9387.tar.bz2
issue #7810 LaTeX manual not built, but make install tries to install it (#7821)
Give a meaningful fatal error when the pdf does not exists (when it exists automatically also the html directory with content exists). Give a meaningful fatal error when the chm does not exists.
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 537089b..df9c2a6 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -212,12 +212,22 @@ install(FILES
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
)
+install(CODE "if(NOT EXISTS \"${PROJECT_BINARY_DIR}/latex/doxygen_manual.pdf\")
+ message(FATAL_ERROR \"\nTerminating:\n documentation has not been generated, \n create documentation by using the 'docs' target followed by an 'install'\n\")
+endif()"
+)
+
install(FILES
"${PROJECT_BINARY_DIR}/latex/doxygen_manual.pdf"
DESTINATION "${CMAKE_INSTALL_PREFIX}/${DOC_INSTALL_DIR}"
)
if (build_doc_chm)
+install(CODE "if(NOT EXISTS \"${PROJECT_BINARY_DIR}/chm/doxygen_manual.chm\")
+ message(FATAL_ERROR \"\nTerminating:\n CHM documentation has not been generated, \n create CHM documentation by using the 'docs_chm' target followed by an 'install'\n\")
+endif()"
+)
+
install(FILES
"${PROJECT_BINARY_DIR}/chm/doxygen_manual.chm"
DESTINATION "${CMAKE_INSTALL_PREFIX}/${DOC_INSTALL_DIR}"