From d00521464bb919091ef4fbfbf1fbbb624819a9e0 Mon Sep 17 00:00:00 2001 From: Adeel <3840695+am11@users.noreply.github.com> Date: Thu, 10 Feb 2022 02:39:04 +0200 Subject: [PATCH] Overwrite existing inc file in h2inc --- eng/native/functions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/native/functions.cmake b/eng/native/functions.cmake index 0c28f75706de19..6ff45a86fbb613 100644 --- a/eng/native/functions.cmake +++ b/eng/native/functions.cmake @@ -15,7 +15,7 @@ function(h2inc filename output) get_filename_component(path "${filename}" DIRECTORY) file(RELATIVE_PATH relative_filename "${CLR_REPO_ROOT_DIR}" "${filename}") - file(APPEND "${output}" "// File start: ${relative_filename}\n") + file(WRITE "${output}" "// File start: ${relative_filename}\n") # Use of NEWLINE_CONSUME is needed for lines with trailing backslash file(STRINGS ${filename} contents NEWLINE_CONSUME)