Problem with GETTEXT_PROCESS_PO_FILES

Alexander Neundorf neundorf at kde.org
Tue Nov 20 20:40:35 GMT 2007


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




More information about the kde-core-devel mailing list