[gtk-doc/wip/tintou/create-xml-before-use: 11/11] cmake: copy the XML file before using it



commit fdf9b46a894a276b9800d9a851b00b07f05a54c5
Author: Corentin Noël <corentin elementary io>
Date:   Fri Oct 5 15:11:50 2018 +0200

    cmake: copy the XML file before using it
    
    Otherwise, gtkdoc-mkdb doesn't find it and think that we are using Autotools and asks for 
gtkdocentities.ent.

 buildsystems/cmake/GtkDocConfig.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/buildsystems/cmake/GtkDocConfig.cmake b/buildsystems/cmake/GtkDocConfig.cmake
index 2de8d83..6f1ec4d 100644
--- a/buildsystems/cmake/GtkDocConfig.cmake
+++ b/buildsystems/cmake/GtkDocConfig.cmake
@@ -253,13 +253,13 @@ function(gtk_doc_add_module _doc_prefix)
             ${_depends}
         ${_remove_xml_if_needed}
         COMMAND ${CMAKE_COMMAND} -E remove_directory ${_output_xml_dir}
+        ${_copy_xml_if_needed}
         COMMAND ${GTKDOC_MKDB_EXE}
             --module=${_doc_prefix}
             ${_source_dirs_opt}
             --source-suffixes=${_doc_source_suffixes}
             --output-format=xml
             --main-sgml-file=${_default_xml_file}
-        ${_copy_xml_if_needed}
         WORKING_DIRECTORY "${_output_dir}"
         VERBATIM)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]