]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
style: move block of code closer to usage
authorGbkng <guillaume.brooking@gmail.com>
Thu, 11 Apr 2024 13:09:20 +0000 (15:09 +0200)
committerGbkng <guillaume.brooking@gmail.com>
Tue, 23 Apr 2024 09:14:21 +0000 (11:14 +0200)
doc/developer/doxygen/CMakeLists.txt

index 9aa32fcf8e6124e7e1bf5db9a63f344e1669c5a5..d3ada12d8e01bfd6056cf447af720d4cfbd70acc 100644 (file)
@@ -33,9 +33,6 @@ configure_file(static/header.html.in static/header.html @ONLY)
 IF(MEDCOUPLING_ENABLE_PYTHON)
   INCLUDE(doxy2swig/doxy2swig.cmake)
 
-  FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/tmp/medcouplingexamples.in" input)
-  FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/BuildPyExamplesFromCPP.py" pythondocexamplesgenerator)
-  FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" output)
 
   # :TRICKY: For ease of maintenance, documentation for code examples is
   # splitted in several files. We here splice to a single file before running
@@ -56,6 +53,9 @@ IF(MEDCOUPLING_ENABLE_PYTHON)
     FILE(APPEND ${OUT_FILE} ${CONTENTS})
   ENDFUNCTION()
 
+  FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/tmp/medcouplingexamples.in" input)
+  FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/BuildPyExamplesFromCPP.py" pythondocexamplesgenerator)
+  FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" output)
   # Prepare a temporary file to "concat" to:
   FILE(WRITE ${input} "")
   # Call the "concat" function for each example file