Remove the temporary stub files after the output object is made

This commit is contained in:
Chris Robinson 2016-11-11 13:19:45 -08:00
parent e69af7ab92
commit b743bc1c1b

View File

@ -1119,6 +1119,7 @@ if(ALSOFT_EMBED_HRTF_DATA)
COMMAND touch "${stubsrcfile}"
COMMAND "${CMAKE_C_COMPILER}" -o "${stubfile}" -c "${stubsrcfile}"
COMMAND "${CMAKE_LINKER}" -r -o "${outfile}" -sectcreate binary ${BIN_NAME} ${FILENAME} "${stubfile}"
COMMAND rm "${stubsrcfile}" "${stubfile}"
COMMENT "Generating ${FILENAME}${CMAKE_C_OUTPUT_EXTENSION}"
VERBATIM
)