[cmake-developers] [CMake 0012172]: [PATCH] FindRuby does not find ruby-1.9.1 shipped with (k)ubuntu
Mantis Bug Tracker
mantis at public.kitware.com
Mon May 9 23:12:08 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12172
======================================================================
Reported By: Luiz Angelo Daros de Luca
Assigned To:
======================================================================
Project: CMake
Issue ID: 12172
Category: Modules
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-05-09 23:12 EDT
Last Modified: 2011-05-09 23:12 EDT
======================================================================
Summary: [PATCH] FindRuby does not find ruby-1.9.1 shipped
with (k)ubuntu
Description:
Hello,
FindRuby only found the 1.8.6 version of my ruby installation, even if I force
the RUBY_EXECUTABLE name.
Steps to Reproduce:
install ubuntu
install both ruby1.8-dev and ruby1.9.1-dev
Use in cmake:
FIND_PACKAGE( Ruby REQUIRED )
SET( RUBY_EXECUTABLE "ruby1.9.1" )
It did not find the ruby library. because it misses a "-" and it does not use
full version. Also, RUBY_EXECUTABLE is not an common input. My config is kind of
a hack but the fix is still valid.
Additional Information:
I did a patch to fix this issue when library is libruby-1.x.x.
I also noticed that there is both RUBY_MAJOR_VERSION and RUBY_VERSION_MAJOR. Is
it all right?
Also, some parameters use Ruby_XXX form instead of RUBY_XXX. I guess the default
in cmake should be the latter (but it will break previous uses).
At Last, if I have multiple ruby installations, I cannot simply set:
(Ruby_FIND_VERSION "1.9")
This should be the easiest solution. However, I'm no expert in cmake lang.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-05-09 23:12 Luiz Angelo Daros de LucaNew Issue
2011-05-09 23:12 Luiz Angelo Daros de LucaFile Added: find-ruby-library.patch
======================================================================
More information about the cmake-developers
mailing list