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.  It is PACKAGE_INCLUDE_INSTALL_DIR because the include dir
is for the PACKAGE.  Even the _INIT variable contains code that computes
information about the PACKAGe.  There is precedent for this in the
find_package command's interface for package version files.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to