ngompa / rpms / cmake

Forked from rpms/cmake 4 years ago
Clone
411bbd
Index: cmake-3.10.0/Modules/FindRuby.cmake
411bbd
===================================================================
411bbd
--- cmake-3.10.0.orig/Modules/FindRuby.cmake
411bbd
+++ cmake-3.10.0/Modules/FindRuby.cmake
411bbd
@@ -106,14 +106,8 @@ if(RUBY_EXECUTABLE  AND NOT  RUBY_VERSIO
411bbd
    _RUBY_CONFIG_VAR("sitearchdir" RUBY_SITEARCH_DIR)
411bbd
    _RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR)
411bbd
 
411bbd
-   # vendor_ruby available ?
411bbd
-   execute_process(COMMAND ${RUBY_EXECUTABLE} -r vendor-specific -e "print 'true'"
411bbd
-      OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY  ERROR_QUIET)
411bbd
-
411bbd
-   if(RUBY_HAS_VENDOR_RUBY)
411bbd
-      _RUBY_CONFIG_VAR("vendorlibdir" RUBY_VENDORLIB_DIR)
411bbd
-      _RUBY_CONFIG_VAR("vendorarchdir" RUBY_VENDORARCH_DIR)
411bbd
-   endif()
411bbd
+   _RUBY_CONFIG_VAR("vendorlibdir" RUBY_VENDORLIB_DIR)
411bbd
+   _RUBY_CONFIG_VAR("vendorarchdir" RUBY_VENDORARCH_DIR)
411bbd
 
411bbd
    # save the results in the cache so we don't have to run ruby the next time again
411bbd
    set(RUBY_VERSION_MAJOR    ${RUBY_VERSION_MAJOR}    CACHE PATH "The Ruby major version" FORCE)