diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2022-06-13 14:46:04 +0200 |
---|---|---|
committer | Christophe Giboudeaux <christophe@krop.fr> | 2022-06-17 16:24:47 +0000 |
commit | 8687d6cb7a838ce619ca6aca97507cbaf5e3ce9c (patch) | |
tree | 6a0da60268c2c957355abf78c0703e18cc76db01 | |
parent | 9aba268a7055fb7352a9d87c4e04abd48ba1b1b1 (diff) | |
download | extra-cmake-modules-8687d6cb7a838ce619ca6aca97507cbaf5e3ce9c.tar.gz extra-cmake-modules-8687d6cb7a838ce619ca6aca97507cbaf5e3ce9c.tar.bz2 |
ECMAddQch: let doxygen update the config file instead of "outdated" warnings
-rw-r--r-- | modules/ECMAddQch.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
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}) |