From 64259a11a026c9ff5fa6d5b8fa2d407a0cfdd0b6 Mon Sep 17 00:00:00 2001 From: Gbkng Date: Thu, 11 Apr 2024 15:12:50 +0200 Subject: [PATCH] refactor: rename some minor internal variables with a clearer name --- doc/developer/doxygen/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/developer/doxygen/CMakeLists.txt b/doc/developer/doxygen/CMakeLists.txt index a48da8d27..47142f4ae 100644 --- a/doc/developer/doxygen/CMakeLists.txt +++ b/doc/developer/doxygen/CMakeLists.txt @@ -86,14 +86,14 @@ ELSE() MEDCOUPLING_SWIG_DOCSTRING_CONFIGURE(doxygen_documentation swig_ready MEDCoupling) MEDCOUPLING_SWIG_DOCSTRING_CONFIGURE(doxygen_documentation swig_ready MEDLoader) - SET(doxyfile_med_dev ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) - FILE(STRINGS ${doxyfile_med_dev} enabled_sections REGEX "ENABLED_SECTIONS") + SET(doxyfile_path ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) + FILE(STRINGS ${doxyfile_path} enabled_sections REGEX "ENABLED_SECTIONS") IF(enabled_sections) - FILE(READ ${doxyfile_med_dev} doxy_file) - STRING(REPLACE ${enabled_sections} "${enabled_sections} ENABLE_EXAMPLES" new_doxy_file ${doxy_file}) - FILE(WRITE ${doxyfile_med_dev} ${new_doxy_file}) + FILE(READ ${doxyfile_path} doxyfile_content) + STRING(REPLACE ${enabled_sections} "${enabled_sections} ENABLE_EXAMPLES" new_doxyfile ${doxyfile_content}) + FILE(WRITE ${doxyfile_path} ${new_doxyfile}) ELSE() - FILE(APPEND ${doxyfile_med_dev} + FILE(APPEND ${doxyfile_path} "#Temporary variable to enable python documentation sections\nENABLED_SECTIONS = ENABLE_EXAMPLES") ENDIF() -- 2.39.2