Am Montag, 25. März 2019, 12:42:06 CET schrieb Jürgen Spitzmüller: > Am Mo., 25. März 2019 um 12:06 Uhr schrieb Kornel Benko <kor...@lyx.org>: > > > 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/),
Sorry, but this is the source directory. > 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). If you want to edit the source, you could set the system dir from the command line to point there. (for instance: lyx -sysdir ~/lyx/lyx-devel/lib) > Consider I have made changes in the build directory, I NEVER make changes to the build ( == generated) directory. Never using build-in-source. > 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. As mentioned above, you could set sysdir from the command line. > Jürgen Kornel
signature.asc
Description: This is a digitally signed message part.