diff --git a/sourcedoc/CMakeLists.txt b/sourcedoc/CMakeLists.txt index d8ef973e9b..61408bf86a 100644 --- a/sourcedoc/CMakeLists.txt +++ b/sourcedoc/CMakeLists.txt @@ -13,12 +13,12 @@ if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND") else() set(VERSION ${PACKAGE_VERSION}) set(top_srcdir "${TOP_SRC_DIR}") - configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" Doxyfile @ONLY) + configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY) add_custom_command( OUTPUT doxy_created - COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile + COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMAND ${CMAKE_COMMAND} -E touch doxy_created - DEPENDS Doxyfile + DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" ) add_custom_target(doxydoc DEPENDS doxy_created) endif()