From cc4f7a73bd4d448fa724e5cf0176ff46809f6ec4 Mon Sep 17 00:00:00 2001 From: cfis Date: Sun, 11 May 2025 17:20:03 -0700 Subject: [PATCH] FindRuby: Improve order of library name alternatives Prefer long versions over short versions. Prefer dotted versions over no-dot versions. --- Modules/FindRuby.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake index 95968164a4..8c567c4de8 100644 --- a/Modules/FindRuby.cmake +++ b/Modules/FindRuby.cmake @@ -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)