# HG changeset patch # User Akos Ladanyi # Date 2009-01-21 19:06:17 # Node ID 8b56605db6a8e99343864bb2d058c5d27aabe806 # Parent 81d40f1c850ce35cfe7dfeb1e811127195d064c3 Fix 'make install' without 'make html' using CMAKE (#207) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -9,6 +9,7 @@ @ONLY) IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) + FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/) IF(UNIX) ADD_CUSTOM_TARGET(html COMMAND rm -rf gen-images @@ -34,9 +35,8 @@ COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) ENDIF(UNIX) + INSTALL( + DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ + DESTINATION doc + COMPONENT html_documentation) ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) - -INSTALL( - DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ - DESTINATION doc - COMPONENT html_documentation)