From 81a19b28e9b621cd7f5a65fdf8b43a5aa0e2b00d Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Thu, 23 Mar 2023 17:03:09 +0100 Subject: [PATCH] CMake: create cpio archive in folder Do not pollute the root folder. Signed-off-by: Axel Heider --- camkes_vm_helpers.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/camkes_vm_helpers.cmake b/camkes_vm_helpers.cmake index 1c22659d..01774062 100644 --- a/camkes_vm_helpers.cmake +++ b/camkes_vm_helpers.cmake @@ -200,10 +200,7 @@ function(DefineCAmkESVMFileServer) # Build CPIO archive. It implicitly depends on all files in CPIO_FILES, # which have their own dependencies each from above. So we don't have any # additional explicit dependencies here. - # Unfortunately MakeCPIO() supports plain file names only, there is no - # support for paths. Archive are created in the root of the built output - # folder. Creating them in BIN_DIR would be much cleaner actually. - set(CPIO_ARCHIVE "${PARAM_INSTANCE}_cpio_archive.o") + set(CPIO_ARCHIVE "${INST_BIN_DIR}/cpio_archive.o") include(cpio) MakeCPIO(${CPIO_ARCHIVE} "${CPIO_FILES}")