Do not uses the FILE(COPY) command which is only supported from cmake 2.8.

This commit is contained in:
Jean-Paul Chaput 2010-05-31 13:33:59 +00:00
parent 1a0a226314
commit 5d33854f57
1 changed files with 3 additions and 1 deletions

View File

@ -481,7 +481,9 @@ MACRO(LATEX_PROCESS_IMAGES dvi_outputs pdf_outputs)
MAKE_DIRECTORY("${path}")
# Copy the source file anyway.
FILE ( COPY "${file}" DESTINATION "${path}" )
# Works only from cmake 2.8.
# FILE ( COPY "${file}" DESTINATION "${path}" )
EXECUTE_PROCESS(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${output_dir}/${file})
# Do conversions for dvi.
LATEX_CONVERT_IMAGE(${dvi_outputs} "${file}" .eps "${convert_flags}"