summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-05-09 19:04:18 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-05-09 19:04:18 (GMT)
commit78d2d9d78366bc2edf8ade7dea94192690f5195e (patch)
treefb6c3eb41ab407990333b1ecaa42dd801099f94f
parent2c3d682ddc3eac67962dc652a53e5e6239df5e43 (diff)
downloadlibkolabxml-buildsystem.tar.gz
xsdbin requires a certain schema order in order to work with xerces < 3.1.0, this patch fixes the order accordingly.buildsystem
It has something to do with the inclusion of duplicates, if a second schema of the same namespace is imported, it's not entierly clear why there are duplicates though...
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07194de..b9a59e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,14 +109,15 @@ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bindings)
set( SCHEMA_DIR ${CMAKE_SOURCE_DIR}/schemas )
# Generate bindings
-
+# WARNING: The inclusion order in SCHEMAS matters with xerces < 3.1.0. It seems without XMLUni::fgXercesHandleMultipleImports at least kolabformat-xcard.xsd MUST be before xCard.xsd,
+# otherwise the compiled schema will simply lack the definitions of kolabformat-xcard.xsd (this affects xsdbin only).
set( SCHEMAS
${SCHEMA_DIR}/ical/kolabformat-xcal.xsd
${SCHEMA_DIR}/ical/iCalendar-params.xsd
${SCHEMA_DIR}/ical/iCalendar-props.xsd
${SCHEMA_DIR}/ical/iCalendar-valtypes.xsd
- ${SCHEMA_DIR}/xCard.xsd
${SCHEMA_DIR}/kolabformat-xcard.xsd
+ ${SCHEMA_DIR}/xCard.xsd
${SCHEMA_DIR}/kolabformat.xsd
)