From 064a3f35a8ee73b5d5841590699f71e1eaf65fc7 Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Thu, 7 Jul 2022 02:15:29 +0200 Subject: [PATCH] CMake: create cpio archive in folder Do not pollute the root folder. Signed-off-by: Axel Heider --- camkes_vm_helpers.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/camkes_vm_helpers.cmake b/camkes_vm_helpers.cmake index 5caed433..4f337063 100644 --- a/camkes_vm_helpers.cmake +++ b/camkes_vm_helpers.cmake @@ -169,10 +169,8 @@ function(DefineCAmkESVMFileServer) list(APPEND CPIO_FILES "${CPIO_FILE}") endforeach() - # Build CPIO archive. Unfortunately MakeCPIO() expect a plain file name an - # can't take a path, so we can create the archive in BIN_DIR to keep the - # root folder clean. - set(CPIO_ARCHIVE "${PARAM_INSTANCE}_cpio_archive.o") + # Build CPIO archive. + set(CPIO_ARCHIVE "${INST_BIN_DIR}/cpio_archive.o") include(cpio) MakeCPIO(${CPIO_ARCHIVE} "${CPIO_FILES}" DEPENDS "${deps}")