diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-12-04 22:19:02 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-12-04 22:19:02 +0000 |
| commit | 6460f4d8e8ca25b1141f454fa93dee433c60cfb2 (patch) | |
| tree | a614d34d5b697b1b71d60d00c16d96bd1954e2a5 /qpid/cpp/bindings/qmf2/ruby | |
| parent | d13411746a104d58754a1caa42a286140d573788 (diff) | |
| download | qpid-python-6460f4d8e8ca25b1141f454fa93dee433c60cfb2.tar.gz | |
QPID-5394: Fix the binding dependencies so that we no longer keep on rebuilding the python swig bindings unnecessarily
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1547933 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/ruby')
| -rw-r--r-- | qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt b/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt index 4ea61abbe8..c40480ff4a 100644 --- a/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt +++ b/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt @@ -20,7 +20,9 @@ ##------------------------------------------------------ ## 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 + CPLUSPLUS ON + SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include;-I${qpid-cpp_SOURCE_DIR}/bindings") if ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8)) set (RUBY_INCLUDE_DIRS ${RUBY_INCLUDE_PATH}) @@ -30,6 +32,10 @@ include_directories(${RUBY_INCLUDE_DIRS} ${qpid-cpp_SOURCE_DIR}/include ${qpid-cpp_SOURCE_DIR}/bindings) +list(APPEND SWIG_MODULE_cqmf2_ruby_EXTRA_DEPS + ${CMAKE_SOURCE_DIR}/include/qmf/qmf2.i + ${CMAKE_SOURCE_DIR}/include/qpid/swig_ruby_typemaps.i +) swig_add_module(cqmf2_ruby ruby ${CMAKE_CURRENT_SOURCE_DIR}/ruby.i) swig_link_libraries(cqmf2_ruby qmf2 ${RUBY_LIBRARY}) |
