Package: cmake Version: 2.8.5-1 Severity: important Tags: patch Dear Maintainer,
In the process of packaging a set of Ruby bindings I find that CMake does not find the Ruby 1.9.1 library. The set of possible library names FindRuby.cmake looks for does not include the actual name in shipped in Debian for ruby1.9.1. Right now I manually set the RUBY_EXECUTABLE and RUBY_LIBRARY variables to their working values. But I think a more general solution for everyone would be the best thing to do. I attach here a patch that looks for the correct library name and I ask you to consider adding it to your CMake patches or upstream it. Thanks. Regards, David. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=es_CO.UTF-8, LC_CTYPE=es_CO.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages cmake depends on: ii cmake-data 2.8.5-1 ii libarchive1 2.8.5-3 ii libc6 2.13-21 ii libcurl3-gnutls 7.21.7-3 ii libexpat1 2.0.1-7 ii libgcc1 1:4.6.1-13 ii libstdc++6 4.6.1-13 ii libxmlrpc-core-c3 1.16.33-3.1 ii procps 1:3.2.8-11 ii zlib1g 1:1.2.3.4.dfsg-3 cmake recommends no packages. Versions of packages cmake suggests: ii gcc 4:4.6.1-3 ii make 3.81-8.1 -- no debconf information
--- a/Modules/FindRuby.cmake +++ b/Modules/FindRuby.cmake @@ -180,7 +180,7 @@ ENDIF( ${Ruby_FIND_VERSION_SHORT_NODOT} GREATER 18 OR ${_RUBY_VERSION_SHORT_NO # 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}) IF(WIN32) SET( _RUBY_MSVC_RUNTIME "" )