From d2b1ce6af0fbdaf75e07cdb102839e9eaf49c1b9 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Wed, 12 Oct 2011 23:05:52 +0200 Subject: 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 --- Modules/FindRuby.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" ) -- cgit v0.12