Merge pull request #332 from vmauge/depends_gentable

Add dependency to gentable.py
This commit is contained in:
Teddy Reed 2014-11-02 17:50:07 -08:00
commit 1abbe7478a

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})