summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2011-12-22 19:45:50 -0800
committerTom Rondeau2011-12-30 13:47:36 -0500
commit6f0aee4f7a200f87c6fbe23c12fb01cbda872608 (patch)
tree64f8e54ef5cd936b5322c6fa4cc8254fc01b8bbf
parent529ffdd0d60241a96b6daa72a1f942d6a92a3535 (diff)
downloadgnuradio-6f0aee4f7a200f87c6fbe23c12fb01cbda872608.tar.gz
gnuradio-6f0aee4f7a200f87c6fbe23c12fb01cbda872608.tar.bz2
gnuradio-6f0aee4f7a200f87c6fbe23c12fb01cbda872608.zip
gr: sync the filesystem before python can parse doxygen
-rw-r--r--cmake/Modules/GrSwig.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
index f49fc731c..ced8b16c8 100644
--- a/cmake/Modules/GrSwig.cmake
+++ b/cmake/Modules/GrSwig.cmake
@@ -72,10 +72,18 @@ function(GR_SWIG_MAKE_DOCS output_file)
COMMENT "Generating doxygen xml for ${name} docs"
)
+ #call sync if we can to flush the doxygen writes to file before python reads
+ find_program(SYNC_EXECUTABLE sync)
+ unset(sync_command)
+ if(SYNC_EXECUTABLE)
+ set(sync_command COMMAND ${SYNC_EXECUTABLE})
+ endif()
+
#call the swig_doc script on the xml files
add_custom_command(
OUTPUT ${output_file}
DEPENDS ${input_files} ${OUTPUT_DIRECTORY}/xml/index.xml
+ ${sync_command}
COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
${CMAKE_SOURCE_DIR}/docs/doxygen/swig_doc.py
${OUTPUT_DIRECTORY}/xml