Browse Source

FindRuby: Consider ruby names with full nodot version suffixes

Pedro Luis Castedo Cepeda 4 years ago
parent
commit
238c2b6cb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindRuby.cmake

+ 1 - 1
Modules/FindRuby.cmake

@@ -435,7 +435,7 @@ endif()
 
 
 # Determine the list of possible names for the ruby library
-set(_Ruby_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_Ruby_VERSION_SHORT} ruby${_Ruby_VERSION_SHORT_NODOT} ruby-${_Ruby_VERSION_SHORT} ruby-${Ruby_VERSION})
+set(_Ruby_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_Ruby_VERSION_SHORT} ruby${_Ruby_VERSION_SHORT_NODOT} ruby${_Ruby_NODOT_VERSION} ruby-${_Ruby_VERSION_SHORT} ruby-${Ruby_VERSION})
 
 if(WIN32)
   set(_Ruby_POSSIBLE_MSVC_RUNTIMES "msvcrt;vcruntime140;vcruntime140_1")