84a160
Index: cmake-3.18.0-rc1/Modules/FindRuby.cmake
84a160
===================================================================
84a160
--- cmake-3.18.0-rc1.orig/Modules/FindRuby.cmake
84a160
+++ cmake-3.18.0-rc1/Modules/FindRuby.cmake
84a160
@@ -289,14 +289,9 @@ if(Ruby_EXECUTABLE AND NOT Ruby_VERSION_
84a160
   _RUBY_CONFIG_VAR("sitearchdir" Ruby_SITEARCH_DIR)
84a160
   _RUBY_CONFIG_VAR("sitelibdir" Ruby_SITELIB_DIR)
84a160
 
84a160
-  # vendor_ruby available ?
84a160
-  execute_process(COMMAND ${Ruby_EXECUTABLE} -r vendor-specific -e "print 'true'"
84a160
-    OUTPUT_VARIABLE Ruby_HAS_VENDOR_RUBY  ERROR_QUIET)
84a160
-
84a160
-  if(Ruby_HAS_VENDOR_RUBY)
84a160
-    _RUBY_CONFIG_VAR("vendorlibdir" Ruby_VENDORLIB_DIR)
84a160
-    _RUBY_CONFIG_VAR("vendorarchdir" Ruby_VENDORARCH_DIR)
84a160
-  endif()
84a160
+  # vendor_ruby
84a160
+  _RUBY_CONFIG_VAR("vendorlibdir" Ruby_VENDORLIB_DIR)
84a160
+  _RUBY_CONFIG_VAR("vendorarchdir" Ruby_VENDORARCH_DIR)
84a160
 
84a160
   # save the results in the cache so we don't have to run ruby the next time again
84a160
   set(Ruby_VERSION_MAJOR    ${Ruby_VERSION_MAJOR}    CACHE PATH "The Ruby major version" FORCE)