mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
StateMachineGenerator: Put output into the CMake build directory
Don't pollute the source directory with generated code.
This commit is contained in:
parent
93ef661914
commit
59fec42a25
|
@ -176,7 +176,7 @@ function(generate_state_machine source header)
|
|||
# is generated for that header.
|
||||
if(NOT TARGET ${target_name})
|
||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||
set(output ${CMAKE_CURRENT_SOURCE_DIR}/${header})
|
||||
set(output ${CMAKE_CURRENT_BINARY_DIR}/${header})
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND ${write_if_different} ${output} ${CMAKE_BINARY_DIR}/Userland/DevTools/StateMachineGenerator/StateMachineGenerator ${source}
|
||||
|
|
Loading…
Reference in a new issue