SHA256
3
0
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:
Ismail Dönmez 2012-05-15 11:17:41 +00:00 committed by Git OBS Bridge
parent e8b19ca92c
commit 2fbe2e4311

View File

@ -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)