Problem with GETTEXT_PROCESS_PO_FILES

Tom Albers tomalbers at kde.nl
Tue Nov 20 21:01:12 GMT 2007


Op Tuesday 20 November 2007 21:40 schreef u:
> On Tuesday 20 November 2007, Tom Albers wrote:
> > Hi,
> >
> > I've found a problem within this macro.
> > The macro expands to a certain line in MakeFiles/pofiles.dir/build.make:
> >
> > cd $BUILD_DIR/po/nl && /usr/bin/msgfmt -o $BUILD_DIR/po/nl/$FILE.gmo
> > $FILE.po
> >
> > Which is wrong because $FILE.po is located in the source dir, not in the
> > BUILD_DIR.
> 
> Hmm, if the filename is given as a relative path, it should be interpreted 
> relative to CMAKE_CURRENT_SOURCE_DIR, that seems right.
> 
> You can add 
>    WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
> to the arguments of ADD_CUSTOM_COMMAND(), that should do it.
> 
> Alex

Thanks Alex. Works perfectly. 
Committed in revision 739317.

Toma


More information about the kde-core-devel mailing list