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