Re: [CMake] Ninja: Avoiding unnecessary rebuilds with generated files

2013-05-06 Thread Miller, Frank
e] Ninja: Avoiding unnecessary rebuilds with generated files > > I've got a custom command which mangles a text file so that it can be linked > into the program: > > add_custom_command ( > OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/schema.sql.inc > COMMAND xxd -i < ${PROJECT_SOURCE

[CMake] Ninja: Avoiding unnecessary rebuilds with generated files

2013-05-05 Thread Florian Weimer
I've got a custom command which mangles a text file so that it can be linked into the program: add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/schema.sql.inc COMMAND xxd -i < ${PROJECT_SOURCE_DIR}/schema.sql > ${CMAKE_CURRENT_BINARY_DIR}/schema.sql.inc DEPENDS schema.sql ) The gene