mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +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
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ function(generate_state_machine source header)
|
||||||
# is generated for that header.
|
# is generated for that header.
|
||||||
if(NOT TARGET ${target_name})
|
if(NOT TARGET ${target_name})
|
||||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||||
set(output ${CMAKE_CURRENT_SOURCE_DIR}/${header})
|
set(output ${CMAKE_CURRENT_BINARY_DIR}/${header})
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${output}
|
OUTPUT ${output}
|
||||||
COMMAND ${write_if_different} ${output} ${CMAKE_BINARY_DIR}/Userland/DevTools/StateMachineGenerator/StateMachineGenerator ${source}
|
COMMAND ${write_if_different} ${output} ${CMAKE_BINARY_DIR}/Userland/DevTools/StateMachineGenerator/StateMachineGenerator ${source}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue