[kde-doc-english] Review Request 118158: Always set src_dir to a not-empty value ('.')

Alex Merry alex.merry at kde.org
Fri May 16 09:34:42 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118158/#review58047
-----------------------------------------------------------



KF5DocToolsMacros.cmake
<https://git.reviewboard.kde.org/r/118158/#comment40370>

    Beware CMake's automatic variable expansion! If the value of ${src_dir} happens to be the name of a variable that expands to the empty string, this will be TRUE.
    
    Instead, use
    if(src_dir STREQUAL "")
    or
    if(NOT src_dir)


- Alex Merry


On May 15, 2014, 11:43 p.m., Luigi Toscano wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118158/
> -----------------------------------------------------------
> 
> (Updated May 15, 2014, 11:43 p.m.)
> 
> 
> Review request for Documentation, KDE Frameworks, Alex Merry, and Aurélien Gâteau.
> 
> 
> Repository: kdoctools
> 
> 
> Description
> -------
> 
> src_dir is empty when the current directory contains the docbook the function is working on. But the subsequent globs use its value, so the search pattern is incorrect ('/*.docbook' instead of, after the patch, './*.docbook'), so that docbook and png files are not installed, breaking the help:/ kioslave.
> 
> 
> Diffs
> -----
> 
>   KF5DocToolsMacros.cmake 08c2a2a 
> 
> Diff: https://git.reviewboard.kde.org/r/118158/diff/
> 
> 
> Testing
> -------
> 
> The missing files are now installed, the examples in tests/ seems to be still working.
> 
> 
> Thanks,
> 
> Luigi Toscano
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-doc-english/attachments/20140516/eee3d187/attachment.html>


More information about the kde-doc-english mailing list