T: set dependancies for generated files
This commit follows the previous one and adds a dependancy for the generated .h files so that when we change T_messages.txt to add a T trace, the compilation succeeds when using ninja in cmake_targets/ran_build/build.
This commit is contained in:
@@ -8,11 +8,12 @@ else()
|
||||
endif()
|
||||
add_custom_command(OUTPUT T_IDs.h
|
||||
COMMAND genids ${CMAKE_CURRENT_SOURCE_DIR}/T_messages.txt T_IDs.h
|
||||
DEPENDS genids
|
||||
DEPENDS genids T_messages.txt
|
||||
COMMENT "Generating T_IDs.h from T_messages.txt"
|
||||
)
|
||||
add_custom_command(OUTPUT T_messages.txt.h
|
||||
COMMAND xxd -i T_messages.txt ${CMAKE_CURRENT_BINARY_DIR}/T_messages.txt.h
|
||||
DEPENDS T_messages.txt
|
||||
COMMENT "Generating T_messages.txt.h from T_messages.txt"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user