PROTON-1912: [ruby] explicit path for swig output

Recent cmake (observed on cmake-3.12.0-1.fc29.x86_64) changed the default
directory for swig output files. This patch explicitly sets the output directory
so files are in a known place, and can be copied when making the gem.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f790480d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f790480d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f790480d

Branch: refs/heads/master
Commit: f790480d54745e73f45a0bc8a49df7ac554d16b0
Parents: 069bb5f
Author: Alan Conway <acon...@redhat.com>
Authored: Thu Aug 9 09:23:40 2018 -0400
Committer: Alan Conway <acon...@redhat.com>
Committed: Fri Aug 10 14:07:55 2018 -0400

----------------------------------------------------------------------
 ruby/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f790480d/ruby/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/ruby/CMakeLists.txt b/ruby/CMakeLists.txt
index 59486f9..848d1c9 100644
--- a/ruby/CMakeLists.txt
+++ b/ruby/CMakeLists.txt
@@ -29,6 +29,8 @@ list(APPEND SWIG_MODULE_cproton-ruby_EXTRA_DEPS
     )
 
 set(CMAKE_SWIG_FLAGS "-DUINTPTR_SIZE=${CMAKE_SIZEOF_VOID_P}")
+# Put the generated source in a known place, we need to copy it for the gem.
+set(SWIG_OUTFILE_DIR "${CMAKE_CURRENT_BINARY_DIR}")
 
 include_directories(${PN_C_INCLUDE_DIR} ${RUBY_INCLUDE_PATH})
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to