MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0012172 | CMake | Modules | public | 2011-05-09 23:12 | 2012-04-19 13:05 | |||||
Reporter | Luiz Angelo Daros de Luca | |||||||||
Assigned To | Alex Neundorf | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | Ubuntu | OS Version | 11.04 | ||||||
Product Version | CMake 2.8.3 | |||||||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | |||||||
Summary | 0012172: [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. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ![]() https://public.kitware.com/Bug/file/3860/find-ruby-library.patch | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2011-05-09 23:12 | Luiz Angelo Daros de Luca | New Issue | ||||||||
2011-05-09 23:12 | Luiz Angelo Daros de Luca | File Added: find-ruby-library.patch | ||||||||
2011-05-10 15:44 | Alex Neundorf | Assigned To | => Alex Neundorf | |||||||
2011-05-10 15:44 | Alex Neundorf | Status | new => assigned | |||||||
2011-05-27 15:40 | Alex Neundorf | Note Added: 0026638 | ||||||||
2011-05-27 15:53 | Luiz Angelo Daros de Luca | Note Added: 0026639 | ||||||||
2012-01-04 16:13 | Alex Neundorf | Relationship added | related to 0005531 | |||||||
2012-01-05 15:55 | Alex Neundorf | Note Added: 0028202 | ||||||||
2012-01-05 16:18 | Alex Neundorf | Note Added: 0028204 | ||||||||
2012-01-05 16:18 | Alex Neundorf | Status | assigned => closed | |||||||
2012-01-05 16:18 | Alex Neundorf | Resolution | open => fixed | |||||||
2012-04-19 13:05 | David Cole | Fixed in Version | => CMake 2.8.8 | |||||||
2012-04-19 13:05 | David Cole | Target Version | => CMake 2.8.8 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|