From 5d33854f579f0d8ca366891590ad0f4cc6cf2e14 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 31 May 2010 13:33:59 +0000 Subject: [PATCH] Do not uses the FILE(COPY) command which is only supported from cmake 2.8. --- crlcore/cmake_modules/UseLATEX.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crlcore/cmake_modules/UseLATEX.cmake b/crlcore/cmake_modules/UseLATEX.cmake index e89fe04b..3dd0c673 100644 --- a/crlcore/cmake_modules/UseLATEX.cmake +++ b/crlcore/cmake_modules/UseLATEX.cmake @@ -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}"