834ab94420
update to cmake 3.18.0 OBS-URL: https://build.opensuse.org/request/show/821995 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=420
14 lines
551 B
Diff
14 lines
551 B
Diff
Index: b/Modules/FindRuby.cmake
|
|
===================================================================
|
|
--- a/Modules/FindRuby.cmake
|
|
+++ b/Modules/FindRuby.cmake
|
|
@@ -290,7 +290,7 @@
|
|
_RUBY_CONFIG_VAR("sitelibdir" Ruby_SITELIB_DIR)
|
|
|
|
# vendor_ruby available ?
|
|
- execute_process(COMMAND ${Ruby_EXECUTABLE} -r vendor-specific -e "print 'true'"
|
|
+ execute_process(COMMAND ${Ruby_EXECUTABLE} -r rbconfig -e "print 'true' unless RbConfig::CONFIG['vendorarchdir'].nil?"
|
|
OUTPUT_VARIABLE Ruby_HAS_VENDOR_RUBY ERROR_QUIET)
|
|
|
|
if(Ruby_HAS_VENDOR_RUBY)
|