diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2010-03-29 21:28:47 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2010-03-29 21:28:47 +0200 |
commit | f7e976540bd6a161abceef33bd8b9c134c493f79 (patch) | |
tree | c54424f3522e76d1ae1904a61cdbef690e78f3a9 /cmake/doc/CMakeLists.txt | |
parent | 0958631378dd8d1ef5df9ff965184563b19d242d (diff) | |
download | dbus-f7e976540bd6a161abceef33bd8b9c134c493f79.tar.gz |
Determine docbook.xsl path on windows from meinproc4 executable.
Diffstat (limited to 'cmake/doc/CMakeLists.txt')
-rw-r--r-- | cmake/doc/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/doc/CMakeLists.txt b/cmake/doc/CMakeLists.txt index 9bca0721..13f81e00 100644 --- a/cmake/doc/CMakeLists.txt +++ b/cmake/doc/CMakeLists.txt @@ -26,7 +26,13 @@ endif (MEINPROC_EXECUTABLE OR XMLTO_EXECUTABLE) if (MEINPROC_EXECUTABLE) set(DOCBOOK_GENERATOR_NAME "meinproc4" PARENT_SCOPE) set(DBUS_XML_DOCS_ENABLED 1) - set(STYLESHEET "${CMAKE_INSTALL_PREFIX}/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl") + if(WIN32) + get_filename_component(_a ${MEINPROC_EXECUTABLE} PATH) + get_filename_component(_meinproc_install_path ${_a} PATH) + else(WIN32) + set(_meinproc_install_path ${CMAKE_INSTALL_PREFIX}) + endif(WIN32) + set(STYLESHEET "${_meinproc_install_path}/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl") endif (MEINPROC_EXECUTABLE) |