[cmake-developers] Making Config.cmake files easier to write
Alexander Neundorf
neundorf at kde.org
Tue Mar 6 15:48:52 EST 2012
On Monday 05 March 2012, Brad King wrote:
> On 3/5/2012 5:04 PM, Alexander Neundorf wrote:
> > So instead of:
> >
> > # @PACKAGE_HELPER_INIT@
> > # ...
> > # set_and_check(FOO_INCLUDE_DIR "@PACKAGE_HELPER_INCLUDE_INSTALL_DIR@")
> > # set_and_check(FOO_SYSCONFIG_DIR
> > "@PACKAGE_HELPER_SYSCONFIG_INSTALL_DIR@")
> >
> >
> > you prefer the following ?
>
> Yes.
>
> > # @PACKAGE_INIT@
> > # ...
> > # set_and_check(FOO_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
> > # set_and_check(FOO_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")
> >
> > I can do that, but I think at least for the variables the "HELPER" makes
> > sense.
>
> We've been through this on the thread earlier when it was "CONFIG_HELPER".
> The information contained in the variables is about the PACKAGE, not about
> the HELPER.
Yes, it is not about a HELPER, but this is all automatically generated helper
stuff for a package.
Anyway, I renamed it and merged it.
Alex
More information about the cmake-developers
mailing list