summaryrefslogtreecommitdiff
path: root/swig/ruby
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2007-08-17 12:47:20 +0000
committerArvin Schnell <aschnell@suse.de>2007-08-17 12:47:20 +0000
commit4dc30abfe6260f18a803d68739b393732c26a2e3 (patch)
tree0bb3ad3f64c1eb98524c39e10e7f500025bf0319 /swig/ruby
parentac6d55955bf9cf5cbd0f462cc30a05871a9f6c6f (diff)
downloadlibzypp-bindings-4dc30abfe6260f18a803d68739b393732c26a2e3.tar.gz
libzypp-bindings-4dc30abfe6260f18a803d68739b393732c26a2e3.tar.bz2
libzypp-bindings-4dc30abfe6260f18a803d68739b393732c26a2e3.zip
- moved ruby files to vendor_ruby
Diffstat (limited to 'swig/ruby')
-rw-r--r--swig/ruby/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/swig/ruby/CMakeLists.txt b/swig/ruby/CMakeLists.txt
index 48d1616..b8e56ea 100644
--- a/swig/ruby/CMakeLists.txt
+++ b/swig/ruby/CMakeLists.txt
@@ -2,7 +2,10 @@
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
FIND_PACKAGE(Ruby REQUIRED)
-MESSAGE( STATUS "Ruby arch dir: ${RUBY_ARCH_DIR}" )
+EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['vendorarchdir']"
+ OUTPUT_VARIABLE RUBY_VENDOR_ARCH_DIR)
+STRING(REPLACE "\n" "" RUBY_VENDOR_ARCH_DIR "${RUBY_VENDOR_ARCH_DIR}")
+MESSAGE( STATUS "Ruby vendor arch dir: ${RUBY_VENDOR_ARCH_DIR}" )
MESSAGE( STATUS "Ruby include path: ${RUBY_INCLUDE_PATH}" )
SET( SWIG_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx" )
@@ -30,5 +33,5 @@ INCLUDE_DIRECTORIES( ${ZYPP_INCLUDE_DIR} )
TARGET_LINK_LIBRARIES( rzypp ${ZYPP_LIBRARY} )
TARGET_LINK_LIBRARIES( rzypp ${RUBY_LIBRARY} )
-INSTALL(TARGETS rzypp LIBRARY DESTINATION ${RUBY_ARCH_DIR} )
+INSTALL(TARGETS rzypp LIBRARY DESTINATION ${RUBY_VENDOR_ARCH_DIR} )