Am Mo., 25. März 2019 um 12:06 Uhr schrieb Kornel Benko <[email protected]>:

> > Doesn't cmake set the correct origin on install?
>
> No
>

It should.


> No its wrong in my opinion.
> Suppose following structure:
> lyx-source:     /usr/src/lyx
> lyx-build:       /build/lyx,
>                           the executable is '/build/lyx/bin/lyx'
> lyx installed system dir: /usr/share/lyx
>                            the executable is '/usr/bin/lyx'
>
> In normal case (not setting systemdir) -->  system dir is /usr/share/lyx,
> If used from the build dir --> system dir is /usr/src/lyx/lib
>
> There is NO buildlyxdir involved. At least a very misunderstandable naming.
>

I think we are talking different things. My point is this. If I open a
template (or another doc) from the build directory (e.g.,
~/lyx/lyx-devel/lib/doc/), all paths should be resolved as pointing to this
directory, even if I have an installed version of the docs in the system
directory, and _notwithstanding_ whether I opened this file with a lyx
binary from the build directory, the installed one (or even another version
of lyx. as long as the files can be opened).

Consider I have made changes in the build directory, including the addition
of new files which are not yet added to the installation. If I open this
document with /usr/bin/lyx, I don't expect the paths to be resolved towards
the system directory.

Jürgen

Reply via email to