FindRuby: The library name on Windows uses major.minor.0 format

This commit is contained in:
cfis
2025-05-11 17:16:42 -07:00
committed by Brad King
parent d703443809
commit e99cb9e35a

View File

@@ -385,10 +385,11 @@ if (Ruby_FIND_VERSION VERSION_GREATER_EQUAL "1.9" OR Ruby_VERSION VERSION_GREATE
set(Ruby_INCLUDE_DIRS ${Ruby_INCLUDE_DIRS} ${Ruby_CONFIG_INCLUDE_DIR})
endif ()
# Determine the list of possible names for the Ruby shared library
# Determine the list of possible names for the ruby library
set(_Ruby_POSSIBLE_LIB_NAMES
ruby
ruby-static
ruby${_Ruby_VERSION_NODOT_ZERO_PATCH}
ruby${_Ruby_VERSION_SHORT}
ruby${_Ruby_VERSION_SHORT_NODOT}
ruby${_Ruby_VERSION_NODOT}