20 lines
926 B
Diff
20 lines
926 B
Diff
--- cmake-3.0.0-rc1/Modules/FindRuby.cmake.orig 2014-02-26 08:41:21.000000000 -0700
|
|
+++ cmake-3.0.0-rc1/Modules/FindRuby.cmake 2014-03-05 10:09:49.692974698 -0700
|
|
@@ -112,14 +112,8 @@
|
|
_RUBY_CONFIG_VAR("sitearchdir" RUBY_SITEARCH_DIR)
|
|
_RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR)
|
|
|
|
- # vendor_ruby available ?
|
|
- execute_process(COMMAND ${RUBY_EXECUTABLE} -r vendor-specific -e "print 'true'"
|
|
- OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY ERROR_QUIET)
|
|
-
|
|
- if(RUBY_HAS_VENDOR_RUBY)
|
|
- _RUBY_CONFIG_VAR("vendorlibdir" RUBY_VENDORLIB_DIR)
|
|
- _RUBY_CONFIG_VAR("vendorarchdir" RUBY_VENDORARCH_DIR)
|
|
- endif()
|
|
+ _RUBY_CONFIG_VAR("vendorlibdir" RUBY_VENDORLIB_DIR)
|
|
+ _RUBY_CONFIG_VAR("vendorarchdir" RUBY_VENDORARCH_DIR)
|
|
|
|
# save the results in the cache so we don't have to run ruby the next time again
|
|
set(RUBY_VERSION_MAJOR ${RUBY_VERSION_MAJOR} CACHE PATH "The Ruby major version" FORCE)
|