mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
IPCCompiler: Add option to pass output file path
Instead of requiring the caller to redirect stdout, let's be nice citizens and add an option for the output file.
This commit is contained in:
parent
5338eba39a
commit
aa329cb2f8
2 changed files with 13 additions and 7 deletions
|
@ -24,7 +24,7 @@ function(compile_ipc source output)
|
|||
endif()
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND $<TARGET_FILE:Lagom::IPCCompiler> ${source} > ${output}.tmp
|
||||
COMMAND $<TARGET_FILE:Lagom::IPCCompiler> ${source} -o ${output}.tmp
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${output}.tmp ${output}
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove ${output}.tmp
|
||||
VERBATIM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue