View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0012507 | CMake | Modules | public | 2011-10-10 05:37 | 2011-12-16 17:21 |
|
Reporter | Vadim Zhukov | |
Assigned To | Alex Neundorf | |
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | i386 | OS | OpenBSD | OS Version | 5.0-CURRENT |
Product Version | CMake 2.8.6 | |
Target Version | CMake 2.8.7 | Fixed in Version | CMake 2.8.7 | |
|
Summary | 0012507: FindRuby.cmake doesn't find system Ruby library |
Description | FindRuby.cmake could not find Ruby library on OpenBSD when the latter is installed from ports. The problem is connected with the fact that Ruby library is named "rubyXY", not "rubyX.Y". Attached a patch that resolves the issue. |
Steps To Reproduce | Just use "find_package(Ruby)". |
Tags | No tags attached. |
|
Attached Files | patch-Modules_FindRuby_cmake [^] (488 bytes) 2011-10-10 05:37 [Show Content] [Hide Content]$OpenBSD$
--- Modules/FindRuby.cmake.orig Sun Oct 9 02:16:37 2011
+++ Modules/FindRuby.cmake Sun Oct 9 02:17:19 2011
@@ -180,7 +180,7 @@ ENDIF( ${Ruby_FIND_VERSION_SHORT_NODOT} GREATER 18 OR
# Determine the list of possible names for the ruby library
-SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT})
+SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT} ruby${_RUBY_VERSION_SHORT_NODOT})
IF(WIN32)
SET( _RUBY_MSVC_RUNTIME "" )
|
|