aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIngo Klöcker <kloecker@kde.org>2007-12-31 16:48:31 +0000
committerIngo Klöcker <kloecker@kde.org>2007-12-31 16:48:31 +0000
commit991e46dbb018ef6251d569c0d46f1236655919c1 (patch)
treecc6c3ffe733121ce867f71f8c0822459991d6e53 /modules
parent0880955ae16caf27f24c5d6f1068ccace4b4dde9 (diff)
downloadextra-cmake-modules-991e46dbb018ef6251d569c0d46f1236655919c1.tar.gz
extra-cmake-modules-991e46dbb018ef6251d569c0d46f1236655919c1.tar.bz2
Change the KDE4_CREATE_HANDBOOK macro so that the current source directory is used as working directory when running meinproc4. This way meinproc4 can find the *.docbook files referenced by index.docbook and sitting next to index.docbook in the source dir. This fixes handbook creation for index.docbook files with references to other *.docbook files.
svn path=/trunk/KDE/kdelibs/; revision=755195
Diffstat (limited to 'modules')
-rw-r--r--modules/KDE4Macros.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index cadcb2b9..f511fe6a 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -268,6 +268,7 @@ macro (KDE4_CREATE_HANDBOOK _docbook)
add_custom_command(OUTPUT ${_doc}
COMMAND ${KDE4_MEINPROC_EXECUTABLE} --check ${_bootstrapOption} --cache ${_doc} ${_input}
DEPENDS ${_docs} ${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(handbook ALL DEPENDS ${_doc})
@@ -276,7 +277,8 @@ macro (KDE4_CREATE_HANDBOOK _docbook)
add_custom_command(OUTPUT ${_htmlDoc}
COMMAND ${KDE4_MEINPROC_EXECUTABLE} --check ${_bootstrapOption} -o ${_htmlDoc} ${_input}
DEPENDS ${_input} ${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}
- )
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ )
add_custom_target(htmlhandbook DEPENDS ${_htmlDoc})
endif(KDE4_ENABLE_HTMLHANDBOOK)