From 4d7cee50f80c1d3878fc2990dd3032f49f91853c Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Wed, 10 Aug 2022 16:08:31 +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 5dcd7e98..97637e81 100644 --- a/camkes_vm_helpers.cmake +++ b/camkes_vm_helpers.cmake @@ -175,10 +175,8 @@ function(DefineCAmkESVMFileServer) list(APPEND CPIO_FILES "${CPIO_FILE}") endforeach() - # Build CPIO archive. Unfortunately MakeCPIO() support plain file names only - # and does not support paths. Archive will be created in the built output - # root folder, where using BIN_DIR would be a bit cleaner actually. - 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}")