7d1988
diff -Naur cmake-3.18.2.orig/Modules/FindRuby.cmake cmake-3.18.2/Modules/FindRuby.cmake
7d1988
--- cmake-3.18.2.orig/Modules/FindRuby.cmake	2020-09-08 13:30:51.129086854 +0000
7d1988
+++ cmake-3.18.2/Modules/FindRuby.cmake	2020-09-10 07:10:56.679302608 +0000
7d1988
@@ -300,14 +300,8 @@
7d1988
   _RUBY_CONFIG_VAR("sitearchdir" Ruby_SITEARCH_DIR)
7d1988
   _RUBY_CONFIG_VAR("sitelibdir" Ruby_SITELIB_DIR)
7d1988
 
7d1988
-  # vendor_ruby available ?
7d1988
-  execute_process(COMMAND ${Ruby_EXECUTABLE} -r vendor-specific -e "print 'true'"
7d1988
-    OUTPUT_VARIABLE Ruby_HAS_VENDOR_RUBY  ERROR_QUIET)
7d1988
-
7d1988
-  if(Ruby_HAS_VENDOR_RUBY)
7d1988
-    _RUBY_CONFIG_VAR("vendorlibdir" Ruby_VENDORLIB_DIR)
7d1988
-    _RUBY_CONFIG_VAR("vendorarchdir" Ruby_VENDORARCH_DIR)
7d1988
-  endif()
7d1988
+  _RUBY_CONFIG_VAR("vendorlibdir" RUBY_VENDORLIB_DIR)
7d1988
+  _RUBY_CONFIG_VAR("vendorarchdir" RUBY_VENDORARCH_DIR)
7d1988
 
7d1988
   # save the results in the cache so we don't have to run ruby the next time again
7d1988
   set(Ruby_VERSION_MAJOR    ${Ruby_VERSION_MAJOR}    CACHE PATH "The Ruby major version" FORCE)