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