Skip to content

Commit 5f33b79

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 5decf7f commit 5f33b79

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
@@ -181,10 +181,8 @@ function(DefineCAmkESVMFileServer)
181181
list(APPEND CPIO_FILES "${CPIO_FILE}")
182182
endforeach()
183183

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

0 commit comments

Comments
 (0)