KDE/kdelibs/cmake/modules
Alexander Neundorf
neundorf at kde.org
Sun Feb 19 18:57:08 CET 2006
On Sunday 19 February 2006 18:53, you wrote:
...
> > So which dirs are added automatically ?
> > CMAKE_CURRENT_BINARY_DIR and CMAKE_CURRENT_SOURCE_DIR ?
>
> If the build is out-of-source CMAKE_CURRENT_BINARY_DIR is added
> automatically. This approximates the include file behavior for
> in-source builds with ""-style includes, at least for source files that
> are in the source directory. Upon writing this I realize that for
> generated sources in the binary tree one needs CMAKE_CURRENT_SOURCE_DIR
> too. I'm less comfortable adding this one automatically so I think I'll
> change things to not do this by default but add both paths if
> CMAKE_AUTOMATIC_INCLUDE_DIRECTORIES is set. Then you can set that
> variable once at the top of KDE and get the required behavior.
Yes, IMO this sounds better :-)
Maybe CMAKE_AUTOMATIC_INCLUDE_DIRECTORIES -> CMAKE_ALWAYS_INCLUDE_CURRENT_DIR
or something like this ?
"AUTOMATIC" sounds a bit vague.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list