[FEATURE REQUEST] CMake and Colors
David Faure
faure at kde.org
Wed Apr 5 21:39:27 CEST 2006
On Wednesday 05 April 2006 21:32, Alexander Neundorf wrote:
> On Sunday 02 April 2006 20:21, David Faure wrote:
> > On Friday 31 March 2006 21:20, Allen Winter wrote:
> > > On Friday 31 March 2006 13:51, Alexander Neundorf wrote:
> > > > On Friday 31 March 2006 20:38, Allen Winter wrote:
> > > > > On Friday 31 March 2006 11:58, Alexander Neundorf wrote:
> > > >
> > > > ...
> > > >
> > > > > > Maybe we should create a file
> > > > > > "kdelibs/cmake/modules/KDE4Defaults.cmake" or something like this,
> > > > > > which contains all these settings
> >
> > Excellent idea !
> > This way we can centralize
> > 1) the forbidding of srcdir==builddir
> > 2) the setting of CMAKE_INCLUDE_CURRENT_DIR to ON
> > 3) the enabling of colors
> >
> > > > > > and e.g. also the FOO_INSTALL_DIR variables.
> >
> > Hmm, that's part of the kde4 paths, which apps -must- use when installing.
> > I thought the idea of separating those 'defaults' is that they are actually
> > optional; if a 3rd-party app developer already uses cmake with his own
> > settings, he should use FindKDE4Internal but he doesn't have to load
> > KDE4Defaults.cmake.
>
> Yes. But does he really *must* use these installation directories ?
Sure.
If an app changes CONFIG_INSTALL_DIR then KConfig (on e.g. an app-global config file) won't work,
if it changes DATA_INSTALL_DIR then locate("data","...") or locate ("appdata","...") won't work,
if it changes MIME_INSTALL_DIR or SERVICES_INSTALL_DIR then ksycoca won't contain its mimetypes/services, making them useless,
etc, you get the point.
It's only possible to change the subdirs used inside a kde prefix if KStandardDirs knows about it...
> And actually he can just set CMAKE_INSTALL_PREFIX to whatever he wants, and
> the app will be installed there.
Sure, choosing a custom prefix is fine. But the organization inside the prefix is fixed.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list