ngompa / rpms / cmake

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