You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1013 B
23 lines
1013 B
2 years ago
|
Index: cmake-3.18.0-rc1/Modules/FindRuby.cmake
|
||
|
===================================================================
|
||
|
--- cmake-3.18.0-rc1.orig/Modules/FindRuby.cmake
|
||
|
+++ cmake-3.18.0-rc1/Modules/FindRuby.cmake
|
||
|
@@ -289,14 +289,9 @@ if(Ruby_EXECUTABLE AND NOT Ruby_VERSION_
|
||
|
_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()
|
||
|
+ # vendor_ruby
|
||
|
+ _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)
|