cmake dependencies bug due to symlinks

Andras Mantia amantia at kde.org
Thu Apr 27 08:51:27 CEST 2006


On Wednesday 26 April 2006 23:13, Brad King wrote:
> Andras Mantia wrote:
> >  I'm using now cmake 2.4.0-beta and still have problems with the
> > include directories (as I described before).
>
> Please post a follow-up to the previous discussion describing changes
> seen with cmake 2.4 if any.  Then that discussion can continue
> separately.

That is hard as I don't keep the mails. ;-) I will try to find the 
thread in the news mirror though.

>  > But what I want to report is a
> >
> > possible bug in finding the dependencies.
> > In a subdir (called lib) I have the following rules:
> > include_directories(
> >    ${CMAKE_CURRENT_SOURCE_DIR}
> >    ${CMAKE_CURRENT_BINARY_DIR}
> >    ${KDE4_INCLUDE_DIR}/kdevelop/interfaces
> >    ${KDE4_INCLUDES}
> >    )
> > set(kdevquanta_LIB_SRCS
> > ...
> >    fileinfodlg.cpp
> > ...
> > )
> >
> > kde4_add_ui_files(kdevquanta_LIB_SRCS fileinfodlg.ui )
> >
> >
> > fileinfodlg.cpp includes ui_fileinfodlg.h which is generated from
> > fileinfodlg.ui.
> >
> > If I run make from a place which is a symlink to the actual
> > location of the toplevel source directory, ui_fileinfodlg.h is not
> > generated and I get a "error: ui_fileinfodlg.h: No such file or
> > directory" error.
>
> Please clarify your directory and symlink structure.  Is it:
>
> foo-source
> foo-binary
> foo-binary-link -> foo-binary # run cmake foo-source / make
>
> or
>
> foo-source
> foo-source-link -> foo-source
> foo-binary # run cmake foo-source-link / make
>
> or something else?

In a simplified version:

source is: /data/development/source
build is: /media/data/build <= from this place it works
symlink is: /data2/build <= from this place it doesn't work

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060427/05a3ee25/attachment.pgp 


More information about the Kde-buildsystem mailing list