Skip to content

Commit 614ef79

Browse files
author
Axel Heider
committed
CMake: create cpio archive in folder
Do not pollute the root folder. Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
1 parent c0a1d7f commit 614ef79

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

camkes_vm_helpers.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,8 @@ function(DefineCAmkESVMFileServer)
175175
list(APPEND CPIO_FILES "${CPIO_FILE}")
176176
endforeach()
177177

178-
# Build CPIO archive. Unfortunately MakeCPIO() support plain file names only
179-
# and does not support paths. Archive will be created in the built output
180-
# root folder, where using BIN_DIR would be a bit cleaner actually.
181-
set(CPIO_ARCHIVE "${PARAM_INSTANCE}_cpio_archive.o")
178+
# Build CPIO archive.
179+
set(CPIO_ARCHIVE "${INST_BIN_DIR}/cpio_archive.o")
182180
include(cpio)
183181
MakeCPIO(${CPIO_ARCHIVE} "${CPIO_FILES}" DEPENDS "${deps}")
184182

0 commit comments

Comments
 (0)