2014-04-04 15:44:30 +00:00
|
|
|
--- cmake-3.0.0-rc3/Modules/FindRuby.cmake.orig 2014-03-20 10:50:27.000000000 -0600
|
|
|
|
+++ cmake-3.0.0-rc3/Modules/FindRuby.cmake 2014-04-04 09:34:41.177072542 -0600
|
|
|
|
@@ -115,14 +115,8 @@
|
2012-05-21 16:39:01 +00:00
|
|
|
_RUBY_CONFIG_VAR("sitearchdir" RUBY_SITEARCH_DIR)
|
|
|
|
_RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR)
|
|
|
|
|
|
|
|
- # vendor_ruby available ?
|
2012-10-25 01:54:09 +00:00
|
|
|
- execute_process(COMMAND ${RUBY_EXECUTABLE} -r vendor-specific -e "print 'true'"
|
2012-05-21 16:39:01 +00:00
|
|
|
- OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY ERROR_QUIET)
|
|
|
|
-
|
2012-10-25 01:54:09 +00:00
|
|
|
- if(RUBY_HAS_VENDOR_RUBY)
|
2012-05-21 16:39:01 +00:00
|
|
|
- _RUBY_CONFIG_VAR("vendorlibdir" RUBY_VENDORLIB_DIR)
|
|
|
|
- _RUBY_CONFIG_VAR("vendorarchdir" RUBY_VENDORARCH_DIR)
|
2012-10-25 01:54:09 +00:00
|
|
|
- endif()
|
2012-05-21 16:39:01 +00:00
|
|
|
+ _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
|
2012-10-25 01:54:09 +00:00
|
|
|
set(RUBY_VERSION_MAJOR ${RUBY_VERSION_MAJOR} CACHE PATH "The Ruby major version" FORCE)
|