From c3da34ad99016c4607ccef204a9819bb2f4d9679 Mon Sep 17 00:00:00 2001 From: Gbkng Date: Thu, 11 Apr 2024 15:09:20 +0200 Subject: [PATCH] style: move block of code closer to usage --- doc/developer/doxygen/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2