From f7e976540bd6a161abceef33bd8b9c134c493f79 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 29 Mar 2010 21:28:47 +0200 Subject: [PATCH] Determine docbook.xsl path on windows from meinproc4 executable. --- cmake/doc/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/doc/CMakeLists.txt b/cmake/doc/CMakeLists.txt index 9bca072..13f81e0 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) -- 2.7.4