summaryrefslogtreecommitdiffstats
path: root/Modules/FindRuby.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-10-12 21:05:52 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-10-12 21:05:52 (GMT)
commitd2b1ce6af0fbdaf75e07cdb102839e9eaf49c1b9 (patch)
treee9eb50b610841050a5c5760106803299413a15bb /Modules/FindRuby.cmake
parentba5a8bcf5d8c8350c195b4c197d57576bbd27e99 (diff)
downloadCMake-d2b1ce6af0fbdaf75e07cdb102839e9eaf49c1b9.zip
CMake-d2b1ce6af0fbdaf75e07cdb102839e9eaf49c1b9.tar.gz
CMake-d2b1ce6af0fbdaf75e07cdb102839e9eaf49c1b9.tar.bz2
Find Ruby on OpenBSD when installed from ports (#12507)
The ruby library on OpenBSD is named rubyXY, not ruby X.y. Find that too. Alex
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 0c86b2d..ae2ea2e 100644
--- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -180,7 +180,7 @@ ENDIF( ${Ruby_FIND_VERSION_SHORT_NODOT} GREATER 18 OR ${_RUBY_VERSION_SHORT_NO
# Determine the list of possible names for the ruby library
-SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT})
+SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT} ruby${_RUBY_VERSION_SHORT_NODOT})
IF(WIN32)
SET( _RUBY_MSVC_RUNTIME "" )