Something about the custom command behavior has changed slightly and I am hoping I am just missing something. I have been able to do the following in the past:<br><br>#<br># reswrap log.sql file<br>#<br><br>SET(DBNAME log_sql)
<br>SET(DBS ${PROJECT_BINARY_DIR}/${DBNAME}.h)<br>SET(LOGSQL ${PROJECT_SOURCE_DIR}/../data/log.sql)<br><br>ADD_CUSTOM_COMMAND (<br> OUTPUT ${DBS}<br> DEPENDS ${LOGSQL}<br> COMMAND ${PROG_RESWRAP}<br> ARGS -t -r ${DBNAME} ${LOGSQL} > ${DBS}
<br>)<br><br>This cmake code basically generates a header file, which is included in source files in the project. Previous cmakes have been able to detect this file as a dependency of the source, and it would be triggered when needed. In the newest (
2.4.3) this no longer occurs, instead I receive an error message:<br><br>make[2]: *** No rule to make target `dtrand/src/log_sql.h', needed by `dtrand/src/CMakeFiles/dtrand.dir/Dtrand.o'. Stop.<br><br>I have other files that are generated in the same way, but they are source (.cpp) files, and are included in the source list. The sources files are generated, but not the header files. It seems that I may need to setup some sort of explicit dependency now?
<br><br>-thanks<br><br>