Explorar o código

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
Alex Neundorf %!s(int64=14) %!d(string=hai) anos
pai
achega
d2b1ce6af0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Modules/FindRuby.cmake

+ 1 - 1
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 "" )