https://bugs.kde.org/show_bug.cgi?id=357428

            Bug ID: 357428
           Summary: kf5-kdoctools: several issues with kdoctools_install()
           Product: frameworks-kdoctools
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kde-doc-engl...@kde.org
          Reporter: maxantis...@freenet.de
                CC: kdelibs-b...@kde.org

I'm trying to use the cmake-magic to include translations (po's & doc's) in a
project.

For translations I'm using a self-made script which downloads l10n-data from
SVN-server:
* po-files are stored in a directory named: l10n-messages/<LANG>/*.po
* doc-files are stored in a directory named: l10n-docs/<LANG>/docs/*.docbook

The application-code was downloaded from GIT-server before.
To combine it with translations, I've copied the translation-dirs
(l10n-messages & l10n-docs) into the application-code. Then I tried to append
original CMakeLists.txt with the following lines:

find_package(KF5I18n CONFIG REQUIRED)
ki18n_install(l10n-messages)
find_package(KF5DocTools REQUIRED)
kdoctools_install(l10n-docs)

1. issue:
Found out that doc's strictly have to be placed into the same directory as the
po-files, otherwise cmake breaks while processing kdoctools_install() .

But shouldn't the functions kdoctools_install(DIR) and ki18n_install(DIR) work
independently from each other? It seems that it is not possible to have po's in
<DIR1> and doc's in <DIR2>

2. issue:
Because of 1st issue I changed my script to download l10n-data from SVN-server
like this:
* po-files are stored in a directory named: translations/<LANG>/*.po
* doc-files are stored in a directory named: translations/<LANG>/docs/*.docbook

But cmake still breaks while processing kdoctools_install(), now with the
following error: 

CMake Error at /usr/lib64/cmake/KF5DocTools/KF5DocToolsMacros.cmake:106
(message):
  SUBDIR needs to be defined when calling kdoctools_create_handbook
Call Stack (most recent call first):
  /usr/lib64/cmake/KF5DocTools/KF5DocToolsMacros.cmake:231
(kdoctools_create_handbook)
  CMakeLists.txt:116 (kdoctools_install)

How to define the missing "SUBDIR"?
Shouldn't this be done by kdoctools_install()  automatically?


Used kf5-kdoctools version: 5.17.0

Reproducible: Always

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to