Kornel Benko schreef op 3-2-2014 22:24:

Am Montag, 3. Februar 2014 um 22:19:35, schrieb Vincent van Ravesteijn <v...@lyx.org>

> Kornel Benko schreef op 3-2-2014 21:39:

...

> > > > Fix this one.

> >

> > > >

> >

> > > > Do you still see the other problem ?

> >

> > >

> >

> > > No, but there is this annoying removing of *all* gmo-files with

> > reconfigure.

> >

> > > I am searching for the cause ... probably the OUTPUT keyword but I'm

> > not sure.

> >

> > >

> >

> > > > Vincent

> >

> > >

> >

> > OK, what about this solution (works here):

> >

> > ...

> >

> > if(LYX_GITVERSION)

> >

> > list(APPEND LYX_UPDATED_GMO_FILES

> > "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}.tobeupdated")

> >

> > add_custom_command(

> >

> > OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}.tobeupdated"

> >

> > COMMAND "${LYX_GITVERSION}" "status" "--porcelain" "${_gmo_base}.po"

> > ">" "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}.tobeupdated"

> >

> > COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_CMAKE_PATH}/po/update-gmo.py"

> >

> > "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}.tobeupdated"

> >

> > "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}"

> >

> > "${LYX_DEST_PO}/${_gmo}"

> >

> > WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"

> >

> > DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}"

> > "${LYX_DEST_PO}/${_gmo_base}.po"

> >

> > )

> >

> > else()

> >

> > ...

> >

> > Kornel

> >

> How do you trigger this ? In other words, what exactly do you do to

> reconfigure ?

>

> I can't reproduce this (although I have seen this once in the very

> beginning).

Reconfiguration means

# cd build-dir

# cmake source-dir ......

This removed all gmo files (in source!) here.

Kornel

It doesn't here (Ubuntu).

Have you tried deleting the build-dir completely, and reconfigure from there ?

Vincent

Reply via email to