FindRuby.cmake
Alexander Neundorf
neundorf at kde.org
Mon Mar 14 22:21:06 CET 2011
On Monday 14 March 2011, Michael Jansen wrote:
> Find attached what i have so far. It is not active or documented yet. Just
> for a review of the general logic.
>
> I found a problem (or overanalyze here). How can i find out if the
> installation prefix of ruby is the same as the installation prefix of cmake
> if autoconf (ruby uses it) provides --exec_prefix, --prefix and --libdir
> options?
>
> Perhaps just compare rbcofigs prefix and CMAKE_INSTALL_PREFIX and be done?
> If someone plays with those options (s)he deserves the problems?
>
> Mike
0002-Reorder-stuff-in-the-hope-it-is-more-readable-and-un.patch
I don't think this patch improves readability.
0003-More-commenting.patch
IMHO this one doesn't really improve the comments.
-# if ruby > 1.8 is required or if ruby > 1.8 was found, search for the config.h dir
+#
+### FIND THE CONFIG.H FILE (IF > RUBY 1.8)
+#
IMO not better than before.
+#
+### CALL FindPackageHandleStandardArgs
+#
INCLUDE(FindPackageHandleStandardArgs)
SET(_RUBY_REQUIRED_VARS RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
This comment doesn't add any information.
And why are they all UPPERCASE ?
0004-1st-Step-Construct-the-custom-installation-area.patch
Looks good.
0005-2nd-step-Implement-the-logic.patch
Looks ok IMO.
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-buildsystem/attachments/20110314/96fec0bc/attachment.htm
More information about the Kde-buildsystem
mailing list