2023-03-30 20:59:31 +02:00
|
|
|
Index: cmake-3.26.2/Modules/FindRuby.cmake
|
2018-04-16 12:53:57 +02:00
|
|
|
===================================================================
|
2023-03-30 20:59:31 +02:00
|
|
|
--- cmake-3.26.2.orig/Modules/FindRuby.cmake
|
|
|
|
+++ cmake-3.26.2/Modules/FindRuby.cmake
|
|
|
|
@@ -313,7 +313,7 @@ if(Ruby_EXECUTABLE AND NOT Ruby_VERSION_
|
2020-07-21 10:54:12 +02:00
|
|
|
_RUBY_CONFIG_VAR("sitelibdir" Ruby_SITELIB_DIR)
|
2012-05-14 16:31:24 +02:00
|
|
|
|
2019-07-22 09:20:56 +02:00
|
|
|
# vendor_ruby available ?
|
2020-07-21 10:54:12 +02:00
|
|
|
- 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)
|
2012-05-14 16:31:24 +02:00
|
|
|
|
2020-07-21 10:54:12 +02:00
|
|
|
if(Ruby_HAS_VENDOR_RUBY)
|