FindRuby: Improve order of library name alternatives

Prefer long versions over short versions.
Prefer dotted versions over no-dot versions.
This commit is contained in:
cfis
2025-05-11 17:20:03 -07:00
committed by Brad King
parent e99cb9e35a
commit cc4f7a73bd

View File

@@ -389,12 +389,12 @@ endif ()
set(_Ruby_POSSIBLE_LIB_NAMES
ruby
ruby-static
ruby-${Ruby_VERSION}
ruby${_Ruby_VERSION_NODOT}
ruby${_Ruby_VERSION_NODOT_ZERO_PATCH}
ruby-${_Ruby_VERSION_SHORT}
ruby${_Ruby_VERSION_SHORT}
ruby${_Ruby_VERSION_SHORT_NODOT}
ruby${_Ruby_VERSION_NODOT}
ruby-${_Ruby_VERSION_SHORT}
ruby-${Ruby_VERSION}
)
if (WIN32)