X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=sourcedoc%2FCMakeLists.txt;h=d8ef973e9b687cacffe4f8d5294a82b218e6cdb3;hb=2de511d90c6e3943b258a2400c795dcedf38c352;hp=42c2c4829d3196dbec27413bb5937107e00cb55b;hpb=d636936877a697a02f57b3d1f0db031cb579438b;p=lyx.git diff --git a/sourcedoc/CMakeLists.txt b/sourcedoc/CMakeLists.txt index 42c2c4829d..d8ef973e9b 100644 --- a/sourcedoc/CMakeLists.txt +++ b/sourcedoc/CMakeLists.txt @@ -11,11 +11,14 @@ find_program(DOXYGEN_EXECUTABLE doxygen) if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND") message(STATUS "doxygen not found, ==> no doxygen creation") else() + set(VERSION ${PACKAGE_VERSION}) + set(top_srcdir "${TOP_SRC_DIR}") + configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" Doxyfile @ONLY) add_custom_command( OUTPUT doxy_created - COMMAND ${DOXYGEN_EXECUTABLE} ${TOP_SRC_DIR}/sourcedoc/Doxyfile + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile COMMAND ${CMAKE_COMMAND} -E touch doxy_created - DEPENDS ${TOP_SRC_DIR}/sourcedoc/Doxyfile + DEPENDS Doxyfile ) add_custom_target(doxydoc DEPENDS doxy_created) endif()