KDE/kdelibs/cmake/modules
Brad King
brad.king at kitware.com
Sun Feb 19 19:10:52 CET 2006
Alexander Neundorf wrote:
> On Sunday 19 February 2006 18:53, you wrote:
>>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.
That's a much better name, but I don't think "ALWAYS" conveys the right
idea since it is a per-directory setting. I've just committed the
changes with the name "CMAKE_INCLUDE_CURRENT_DIR".
Thanks,
-Brad
More information about the Kde-buildsystem
mailing list