mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +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
Notes:
sideshowbarker
2024-07-18 17:42:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/59fec42a25e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue