mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-12 13:08:50 +00:00
Cosmetics, no functional change expected. Fixed leading space alignment. Replaced tabs with spaces. Emulation error message output is now aligned. To locate tabs in cmake, the following bash is useful: grep -PRil "\t" * | grep -i cmake | grep -v ^sanity Signed-off-by: Mark Ruvald Pedersen <mped@oticon.com>
18 lines
485 B
CMake
18 lines
485 B
CMake
# Merges a list of files into a destination file.
|
|
# Usage: list of files as arguments, first argument is the destination file
|
|
|
|
MATH(EXPR ARGC "${CMAKE_ARGC}-1")
|
|
# First 3 arguments are "cmake", "-P", and "process.cmake"
|
|
if( ${CMAKE_ARGC} LESS 5)
|
|
message(FATAL_ERROR "Not enough arguments")
|
|
endif()
|
|
|
|
set(DEST_FILE ${CMAKE_ARGV3})
|
|
# Empty the file
|
|
file(REMOVE ${DEST_FILE})
|
|
|
|
foreach(i RANGE 4 ${ARGC})
|
|
file(READ ${CMAKE_ARGV${i}} BUF)
|
|
file(APPEND ${DEST_FILE} ${BUF})
|
|
endforeach()
|