Commit 36f5da4c authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ENH: This will copy files during build stage and not during cmake stage. This...

ENH: This will copy files during build stage and not during cmake stage. This way if one of the .py files changes, the dependency checking will make sure that the file will be copied.
parent 52e5b61e
......@@ -225,7 +225,13 @@ IF(PYTHON_EXECUTABLE)
FOREACH(file ${VTK_PYTHON_FILES})
SET(src "${VTK_SOURCE_DIR}/Wrapping/Python/${file}.py")
SET(tgt "${VTK_BINARY_DIR}/Wrapping/Python/${file}.py")
CONFIGURE_FILE(${src} ${tgt} COPYONLY)
MESSAGE("Add custom command")
ADD_CUSTOM_COMMAND(SOURCE ${src}
COMMAND ${CMAKE_COMMAND}
ARGS -E copy ${src} ${tgt}
OUTPUTS ${tgt}
TARGET vtkpython_pyc
COMMENT "source copy")
ENDFOREACH(file)
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/vtk.pth
${VTK_BINARY_DIR}/Wrapping/Python/vtk.pth COPYONLY)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment