Skip to content

FindRuby: Consider ruby names with full nodot version suffixes

gitplcc requested to merge gitplcc/cmake:ruby_library into master
  • Using Ruby 3.0.0 with rbenv on Cygwin
  • Ruby library name: libruby300.dll.a
  • Problem: FindRuby found almost everything (executable, directories) but fails to set RUBY_LIBRARY as patch number is not included in suffixes for non-win32 platforms.
  • Fix: add ruby${_Ruby_NODOT_VERSION} to _Ruby_POSSIBLE_LIB_NAMES

Topic-rename: FindRuby-nodot-version

Edited by Brad King

Merge request reports