FindRuby support for versions through 2.7
https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/FindRuby.cmake#L10
doc says:
This module finds if Ruby is installed and determines where the
include files and libraries are. Ruby 1.8, 1.9, 2.0 and 2.1 are
supported.
code seems to indicate it goes up to 2.4. https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/FindRuby.cmake#L63
Current stable version is 2.7.
I also don't think it's nearly as robust as findPython, and won't work with RVM envs etc. I remember checking that and coming to that conclusion, but it was a while back and I'm not 100% sure I remember everything correctly.
Ideally I'd be able to do:
find_package(Ruby 2.7)
or:
find_package(Ruby 2.5.5)
and it'll work even if that ruby is from RVM and isn't active yet (eg ~/.rvm/rubies/ruby-2.5.5/bin/ruby
or /usr/share/rvm/rubies/ruby-2.5.5/bin/
)
Edited by Brad King