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}")