Commit fcd141ab authored by Daniel Wortmann's avatar Daniel Wortmann
Browse files

Added proper dependency of Schema generation cmake script

parent 447a10e9
......@@ -3,6 +3,7 @@ if (XXD_PROG)
OUTPUT ${CMAKE_SOURCE_DIR}/io/xml/inputSchema.h
COMMAND ${XXD_PROG} -i FleurInputSchema.xsd inputSchema.h
DEPENDS ${CMAKE_SOURCE_DIR}/io/xml/FleurInputSchema.xsd
COMMENT "Putting current Schema into inputSchema.h")
......@@ -11,4 +12,4 @@ else()
COMMAND mv ${CMAKE_SOURCE_DIR}/io/xml/inputSchema.h.backup ${CMAKE_SOURCE_DIR}/io/xml/inputSchema.h
COMMENT "No xxd found using backup")
message("No xxd command found! Using backup of inputSchema.h")
\ No newline at end of file
  • Removing the build directory and then generating a new one with the configure script does not result in compiling a new inputSchema.h for me. But at the moment this is not a problem and I'm not sure if this actually ever results in a problem. Of course in my case a inputSchema.h exists and the FleurInputSchema.xsd has a "last modification date" earlier than the generation of inputSchema.h.

  • No, why should the inputSchema.h be regenerated in this case? It is only updated if it is a) not present (after fresh clone from git) or b) FleurInputSchema.xsd is updated

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment