]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
refactor: rename some minor internal variables with a clearer name
authorGbkng <guillaume.brooking@gmail.com>
Thu, 11 Apr 2024 13:12:50 +0000 (15:12 +0200)
committerGbkng <guillaume.brooking@gmail.com>
Tue, 23 Apr 2024 07:48:25 +0000 (09:48 +0200)
doc/developer/doxygen/CMakeLists.txt

index a48da8d271148958dec17d09c9b24b5ded934696..47142f4ae8039727d69a6be101646b47db6c51f0 100644 (file)
@@ -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()