Commit 90b169ae authored by Ben Boeckel's avatar Ben Boeckel

copy_files_recursive: use configure_file

parent 7425f8ed
......@@ -520,9 +520,8 @@ function(copy_files_recursive source-dir)
set (in-file "${source-dir}/${_file}")
set (out-file "${dest-dir}/${_file}")
get_filename_component(out-path ${out-file} PATH)
list (APPEND all_files ${in-file})
set (copy-commands "${copy-commands}
file(COPY \"${in-file}\" DESTINATION \"${out-path}\")")
list (APPEND all_files "${in-file}")
set (copy-commands "${copy-commands}\nconfigure_file(\"${in-file}\" \"${out-path}\" COPYONLY)")
endif()
endforeach()
......
Markdown is supported
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