diff options
author | Jörg Mayer <jmayer@loplof.de> | 2010-02-25 12:30:44 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2010-02-25 12:30:44 +0000 |
commit | 914983a0dce85c43d8bd8e7c396d3a9c1d44ff63 (patch) | |
tree | 4f012ed120f8cd9530dcc035be8ee6552f952997 /cmake/modules/FindXMLLINT.cmake | |
parent | 480582e8e91c409ec8a729ff6c79a2814c50273d (diff) |
Almost working out-of-tree builds for the documentation,
with a few hacks right now:
- The tip.png, warning.png and note.png images are missing from the
pdfs and I have no idea how to tell fop how to find them.
- Disabling/enabling building the guides via option currently doesn't
work (probably too many macros :-), so comment out the subdir instead.
- Right now, in order to build the devleopers guide we need to do the
following in the source docbook directory:
touch wsdg_graphics/toolbar/dummy.dummy
Apart from these: The build works with a pristine docbook dir
(svn status --no-ignore).
svn path=/trunk/; revision=32004
Diffstat (limited to 'cmake/modules/FindXMLLINT.cmake')
-rw-r--r-- | cmake/modules/FindXMLLINT.cmake | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/cmake/modules/FindXMLLINT.cmake b/cmake/modules/FindXMLLINT.cmake index f5ac6459e2..583868050a 100644 --- a/cmake/modules/FindXMLLINT.cmake +++ b/cmake/modules/FindXMLLINT.cmake @@ -25,24 +25,25 @@ MARK_AS_ADVANCED(XMLLINT_EXECUTABLE) # Validate XML MACRO(VALIDATE_XML _validated _sources) - message(STATUS "Source(s): ${${_sources}}") # FIXME: How do I extract the first element of a variable containing a # list of values? Isn't there a "cleaner" solution? - FOREACH(_source ${${_sources}}) + # Oh, and I have no idea why I can't directly use _source instead of + # having to introduce _tmpsource. + FOREACH(_tmpsource ${${_sources}}) + set(_source ${_tmpsource}) BREAK() ENDFOREACH() ADD_CUSTOM_COMMAND( - OUTPUT - ${CMAKE_CURRENT_BINARY_DIR}/${_validated} - COMMAND ${XMLLINT_EXECUTABLE} + OUTPUT + ${_validated} + COMMAND ${XMLLINT_EXECUTABLE} + --path "${CMAKE_CURRENT_SOURCE_DIR}:${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_CURRENT_BINARY_DIR}/wsluarm_src" --valid --noout - --path "${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_CURRENT_SOURCE_DIR}" - ${_source} - COMMAND touch - ${CMAKE_CURRENT_BINARY_DIR}/${_validated} - DEPENDS - ${_source} - svn_version.xml + ${_source} + COMMAND touch + ${_validated} + DEPENDS + ${${_sources}} ) ENDMACRO(VALIDATE_XML) |