X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=sourcedoc%2FCMakeLists.txt;h=8fe4a28fa53a776f75f048d3fff4f9974ea28b37;hb=369455392049af9786e8f5bad1354aeb69cc7d01;hp=42c2c4829d3196dbec27413bb5937107e00cb55b;hpb=d636936877a697a02f57b3d1f0db031cb579438b;p=lyx.git diff --git a/sourcedoc/CMakeLists.txt b/sourcedoc/CMakeLists.txt index 42c2c4829d..8fe4a28fa5 100644 --- a/sourcedoc/CMakeLists.txt +++ b/sourcedoc/CMakeLists.txt @@ -9,13 +9,16 @@ project(doxydoc) find_program(DOXYGEN_EXECUTABLE doxygen) if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND") - message(STATUS "doxygen not found, ==> no doxygen creation") + 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" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY) add_custom_command( OUTPUT doxy_created - COMMAND ${DOXYGEN_EXECUTABLE} ${TOP_SRC_DIR}/sourcedoc/Doxyfile + COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMAND ${CMAKE_COMMAND} -E touch doxy_created - DEPENDS ${TOP_SRC_DIR}/sourcedoc/Doxyfile + DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" ) add_custom_target(doxydoc DEPENDS doxy_created) endif()