forked from pool/cmake
use .nil? instead of .blank?, thanks to darix for pointing it out
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=91
This commit is contained in:
parent
e8b19ca92c
commit
2fbe2e4311
@ -7,7 +7,7 @@ Index: cmake-2.8.8/Modules/FindRuby.cmake
|
||||
|
||||
# vendor_ruby available ?
|
||||
- EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r vendor-specific -e "print 'true'"
|
||||
+ EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -e "print 'true' unless Config::CONFIG['vendorarchdir'].blank?"
|
||||
+ EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -e "print 'true' unless Config::CONFIG['vendorarchdir'].nil?"
|
||||
OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY ERROR_QUIET)
|
||||
|
||||
IF(RUBY_HAS_VENDOR_RUBY)
|
||||
|
Loading…
Reference in New Issue
Block a user