Am Donnerstag, 21. Dezember 2006 15:56 schrieb Abdelrazak Younes:
> Enrico Forestieri wrote:
> 
> >>  set(LYX_DIR         "${CMAKE_SOURCE_DIR}/../../lib")
> >>  set(TOP_SRCDIR      "${CMAKE_SOURCE_DIR}/../..")
> >> -set(PROGRAM_SUFFIX  "${CMAKE_SOURCE_DIR}/bin")
> >> +set(PROGRAM_SUFFIX  "")
> >>  set(LOCALEDIR       "${CMAKE_SOURCE_DIR}/../../lib/po")
> > 
> > Abdel, both LYX_DIR and LOCALEDIR should be set to the installation
> > directories.
> 
> There is no such thing as installation directory in CMake (as of now) so 
> we have no choice but to last resort on the source directory.

That does not make sense, since the source dir is searched anyway. If there 
is no installation dir then it is probably best to leave these variables 
empty.

> > However, I think that they are last resort locations and,
> > if properly installed, LyX should be able to find the needed dirs.
> > They are useful if you move the binary around.
> 
> But then, what does the in build-tree binary use for these dirs?

It first tries to find out whether it runs from the build tree or not. If 
it is running from the build tree the hardcoded installation dirs are not 
used. Look at package.C.in if you want to know more.


Georg

Reply via email to