From: Michael Schroeder Date: Mon, 21 May 2012 13:17:51 +0000 (+0200) Subject: - be a bit more tolerant about FindRuby not setting RUBY_VENDORARCH_DIR X-Git-Tag: BASE-SuSE-Code-12_2-Branch~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c235e8f37d9fc776c439266f1613123e161c9e4;p=thirdparty%2Flibsolv.git - be a bit more tolerant about FindRuby not setting RUBY_VENDORARCH_DIR --- diff --git a/bindings/ruby/CMakeLists.txt b/bindings/ruby/CMakeLists.txt index b160f07a..bc7a1f91 100644 --- a/bindings/ruby/CMakeLists.txt +++ b/bindings/ruby/CMakeLists.txt @@ -1,10 +1,10 @@ FIND_PACKAGE (Ruby) -IF (USE_VENDORDIRS) +IF (USE_VENDORDIRS AND RUBY_VENDORARCH_DIR) SET (RUBY_INSTALL_DIR ${RUBY_VENDORARCH_DIR}) -ELSE (USE_VENDORDIRS) +ELSE (USE_VENDORDIRS AND RUBY_VENDORARCH_DIR) SET (RUBY_INSTALL_DIR ${RUBY_SITEARCH_DIR}) -ENDIF (USE_VENDORDIRS) +ENDIF (USE_VENDORDIRS AND RUBY_VENDORARCH_DIR) MESSAGE (STATUS "Ruby executable: ${RUBY_EXECUTABLE}") MESSAGE (STATUS "Ruby installation dir: ${RUBY_INSTALL_DIR}")