From: Gbkng Date: Thu, 11 Apr 2024 13:09:20 +0000 (+0200) Subject: style: move block of code closer to usage X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c51eb34e77bfe648028cffdff6ef0612f7a8cfc2;p=tools%2Fmedcoupling.git style: move block of code closer to usage --- diff --git a/doc/developer/doxygen/CMakeLists.txt b/doc/developer/doxygen/CMakeLists.txt index 9aa32fcf8..d3ada12d8 100644 --- a/doc/developer/doxygen/CMakeLists.txt +++ b/doc/developer/doxygen/CMakeLists.txt @@ -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