cannot treat the schema scanner source as a config file, so add /*WARNING*/

This commit is contained in:
Mark Pictor 2014-02-08 12:58:59 -05:00
parent 4d945de475
commit cd0d8b496b
2 changed files with 9 additions and 1 deletions

View file

@ -7,6 +7,12 @@
* generated files will be called.
*/
/* WARNING
* If you modify this file, you must re-run cmake. It doesn't seem to be possible
* to re-run cmake automatically, as CMake's configure_file() gets confused by
* the '${' and '}' in writeLists() below.
*/
extern "C" {
# include "expparse.h"
# include "expscan.h"

View file

@ -101,5 +101,7 @@ macro(SCHEMA_CMLIST SCHEMA_FILE)
foreach(_dir ${_list})
add_subdirectory(${_dir} ${_dir}) #specify source and binary dirs as the same
endforeach(_dir ${_ss_out})
configure_file(${SCHEMA_FILE} ${SCANNER_BUILD_DIR}/${_schema}) #if multiple schemas in one file, _schema is the last one printed.
# configure_file forces cmake to run again if the schema has been modified
#if multiple schemas in one file, _schema is the last one printed.
configure_file(${SCHEMA_FILE} ${SCANNER_BUILD_DIR}/${_schema})
endmacro(SCHEMA_CMLIST SCHEMA_FILE)