summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings/qmf
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-07-05 21:41:52 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-07-05 21:41:52 +0000
commitbbbe4dea78e49cb408ffd773d6287bd0da8758f4 (patch)
treeec4d49411a03633c41f6697ff4b9dc601675d702 /qpid/cpp/bindings/qmf
parentc0206c4dd0897907fc55bab088d1da96bdf4c3ef (diff)
downloadqpid-python-bbbe4dea78e49cb408ffd773d6287bd0da8758f4.tar.gz
QPID-4101: Fixes building the Ruby language bindings for Ruby 1.9
Applied lightly modified patch from Darryl Pierce git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1357945 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf')
-rw-r--r--qpid/cpp/bindings/qmf/ruby/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/cpp/bindings/qmf/ruby/CMakeLists.txt b/qpid/cpp/bindings/qmf/ruby/CMakeLists.txt
index 4b6ba2c1c3..702606139b 100644
--- a/qpid/cpp/bindings/qmf/ruby/CMakeLists.txt
+++ b/qpid/cpp/bindings/qmf/ruby/CMakeLists.txt
@@ -21,13 +21,12 @@
## Use Swig to generate a literal binding to the C++ API
##------------------------------------------------------
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/ruby.i PROPERTIES CPLUSPLUS ON)
-set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/ruby.i PROPERTIES SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include")
+
+include_directories(${RUBY_INCLUDE_DIRS} ${qpid-cpp_SOURCE_DIR}/include)
swig_add_module(qmfengine_ruby ruby ${CMAKE_CURRENT_SOURCE_DIR}/ruby.i)
swig_link_libraries(qmfengine_ruby qmf qmfconsole ${RUBY_LIBRARY})
-set_source_files_properties(${swig_generated_file_fullname} PROPERTIES COMPILE_FLAGS "-I${RUBY_INCLUDE_DIR} -I${qpid-cpp_SOURCE_DIR}/include")
-
##----------------------------------
## Install the complete Ruby binding
##----------------------------------