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