From 8687d6cb7a838ce619ca6aca97507cbaf5e3ce9c Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Mon, 13 Jun 2022 14:46:04 +0200 Subject: ECMAddQch: let doxygen update the config file instead of "outdated" warnings --- modules/ECMAddQch.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/ECMAddQch.cmake') diff --git a/modules/ECMAddQch.cmake b/modules/ECMAddQch.cmake index e95003fa..fefe9c07 100644 --- a/modules/ECMAddQch.cmake +++ b/modules/ECMAddQch.cmake @@ -614,6 +614,17 @@ function(ecm_add_qch target_name) "${_doxygenconfig_file}" @ONLY ) + # Doxygen warns verbosely about outdated config entries. + # To spare custom code here to generate configuration with no out-dated entries, + # instead make use of the doxygen feature to update configuration files. + execute_process( + COMMAND ${DOXYGEN_EXECUTABLE} -u "${_doxygenconfig_file}" + ERROR_VARIABLE _doxygen_update_error + RESULT_VARIABLE _doxygen_update_result + ) + if(NOT ${_doxygen_update_result} STREQUAL "0") + message(WARNING "Updating the doxygen config file failed: ${_doxygen_update_error}") + endif() # setup make target set(_qch_INSTALLPATH ${ARGS_QCH_INSTALL_DESTINATION}) -- cgit v1.2.1