SHA256
3
0
forked from pool/cmake
cmake/cmake-fix-ruby-test.patch
Simon Lees 27bfbd96de Accepting request 596970 from home:frispete:gcc
- allow build with curl libs from older distributions
- refresh patches

- Cleanup spec file with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/596970
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=320
2018-04-16 10:53:57 +00:00

14 lines
599 B
Diff

Index: b/Modules/FindRuby.cmake
===================================================================
--- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -110,7 +110,7 @@ if(RUBY_EXECUTABLE AND NOT RUBY_VERSIO
_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)