Add dependency to gentable.py

With this commit, a change to gentable.py will trigger
the regeneration of cpp code for each table.
This commit is contained in:
Vincent Mauge 2014-11-02 17:00:47 -08:00
parent 7029c72e5a
commit b18dcaa7cb

View File

@ -141,7 +141,7 @@ foreach(TABLE_FILE ${TABLE_FILES})
ADD_CUSTOM_COMMAND(
OUTPUT ${TABLE_FILE_GEN}
COMMAND python ${CMAKE_SOURCE_DIR}/tools/gentable.py ${TABLE_FILE} ${TABLE_FILE_GEN}
DEPENDS ${TABLE_FILE}
DEPENDS ${TABLE_FILE} ${CMAKE_SOURCE_DIR}/tools/gentable.py
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
)
list(APPEND GENERATED_TABLES ${TABLE_FILE_GEN})