summaryrefslogtreecommitdiff
path: root/Modules/FindRuby.cmake
diff options
context:
space:
mode:
authorPedro Luis Castedo Cepeda <pedroluis.castedo@upm.es>2021-03-25 20:17:28 +0100
committerBrad King <brad.king@kitware.com>2021-03-25 15:30:09 -0400
commit238c2b6cb7e96a6024108b3657f7d8bec6fa07f2 (patch)
tree1ec1760482b739b2056ff061b3691dfc2ab64830 /Modules/FindRuby.cmake
parent0020f69848e6a80858e9b56fc351d7644cff6e4d (diff)
downloadcmake-238c2b6cb7e96a6024108b3657f7d8bec6fa07f2.tar.gz
FindRuby: Consider ruby names with full nodot version suffixes
Diffstat (limited to 'Modules/FindRuby.cmake')
-rw-r--r--Modules/FindRuby.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake
index ee07f83451..759f57c22d 100644
--- a/Modules/FindRuby.cmake
+++ b/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")