summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings/qmf2/ruby
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2014-06-17 22:44:15 +0000
committerAndrew Stitcher <astitcher@apache.org>2014-06-17 22:44:15 +0000
commitf9c83b18c822fbebe8417818b1025503c2238b86 (patch)
treeaac72c19317565dfab231b536f9b50887459737f /qpid/cpp/bindings/qmf2/ruby
parented32be4a4fb2deba5ce31f604cac67abc7fa1977 (diff)
downloadqpid-python-f9c83b18c822fbebe8417818b1025503c2238b86.tar.gz
NO-JIRA: Make bindings install on windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1603302 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/ruby')
-rw-r--r--qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt18
1 files changed, 5 insertions, 13 deletions
diff --git a/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt b/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt
index 13e478e2dc..74fe777805 100644
--- a/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt
+++ b/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt
@@ -42,17 +42,9 @@ swig_link_libraries(cqmf2_ruby qmf2 qpidmessaging qpidtypes ${RUBY_LIBRARY})
##----------------------------------
## Install the complete Ruby binding
##----------------------------------
-if ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cqmf2_ruby.so
- RENAME cqmf2.so
- DESTINATION ${RUBY_PFX_ARCH_DIR}
- COMPONENT ${QPID_COMPONENT_CLIENT}
- )
-else()
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcqmf2_ruby.so
- RENAME cqmf2.so
- DESTINATION ${RUBY_PFX_ARCH_DIR}
- COMPONENT ${QPID_COMPONENT_CLIENT}
- )
-endif ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+install(TARGETS ${SWIG_MODULE_cqmf2_ruby_REAL_NAME}
+ RENAME cqmf2.so
+ DESTINATION ${RUBY_PFX_ARCH_DIR}
+ COMPONENT ${QPID_COMPONENT_CLIENT}
+)